| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Displaying 'xxx products found' on search results page? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() When someone searches, it shows all the results in multiple pages, but I want to display the number of products found in the search.
In /customer/search.php, at the bottom there is a var called $total_products_in_search. I can echo it in that page but of course it prints at the top of the page instead of inside the template. I am not an expert at smarty templates, but does anyone know how I can add this $total_products_in_search variable to the template for search results? Thanks!
__________________
Jeremy X-Cart Gold v3.4.14 [Linux/Apache] Heavily Modded |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Please don't post requests here.
This forum is for finished modifications only. |
|||||||||
#3
|
|||||||
|
|||||||
![]() Hey adpboss,
is you site down?? Quote:
__________________
Emerson █ Total Server Solutions LLC- Quality X-Cart Hosting █ Recommended X-Cart Hosting Provider - US and UK servers █ Does your host backup your site? We do EVERY HOUR!!! █ Shared Hosting | Managed Cloud | Dedicated Servers |
|||||||
#4
|
|||||||
|
|||||||
![]() I haven't seen a solution posted, so here is one:
In search.php (the one under /customer) add the following under #Navigation Code Code:
Then you can call {$total_products_in_search} from search_result.tpl Hope someone finds this helpful. John |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|