| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Search resuts message | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() When I submit a search, on the search results page it will display:
"5 results found" > I would like to have it display: "BIKES returned 5 results" Can someone help me get the "search term" to display with the results message?
__________________
x-cart 4.0.16v linux server |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Make a backup of any template you edit, I don't garentee that this will work as I have heavily modded my site and early on I didn't comment as heavily as i should have :*)
in your search_result.tpl right after {if $mode eq "search"} Quote:
I'm not sure how much of this code is prexhisting but I'll break it down for you: the 'if mode eq search' is pretty self explanitory as is 'if total items gt 1' part. the language variable may not be in your database to check if it is and/or add if it isn't go into your language section in your admin pannel and search for "results found' in the text class. add 'txt_N_results_found' if you don't see it and in your wording put 'items' where you want the total number of items to appear my wording is thus:"items results found" you could put the 'for' in the txt variable if you want, i just have it hanging out in the template. The '|substitute:"items":$total_items' part of the variable does what you expect, substitues the word 'items' with the variable total_items. I have the html codes for " " around the search variable. |
|||||||||
#3
|
|||||||
|
|||||||
![]() It worked; thank you for the help.
__________________
x-cart 4.0.16v linux server |
|||||||
|
|||
X-Cart forums © 2001-2020
|