Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Displaying 'xxx products found' on search results page?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-28-2004, 08:54 AM
 
jeremye jeremye is offline
 

Senior Member
  
Join Date: Apr 2004
Location: Philadelphia, PA
Posts: 158
 

Default Displaying 'xxx products found' on search results page?

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
Reply With Quote
  #2  
Old 04-28-2004, 02:49 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Please don't post requests here.

This forum is for finished modifications only.
Reply With Quote
  #3  
Old 04-28-2004, 02:59 PM
 
Emerson Emerson is offline
 

X-Man
  
Join Date: Mar 2004
Location: Atlanta, GA
Posts: 2,209
 

Default

Hey adpboss,

is you site down??

Quote:
Forbidden
You don't have permission to access / on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/1.3.29 Server at www.adpmods.com Port 80
__________________
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
Reply With Quote
  #4  
Old 08-31-2004, 04:46 PM
 
johnnydos johnnydos is offline
 

Member
  
Join Date: Apr 2004
Posts: 10
 

Default

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:
$smarty->assign("total_products_in_search",$total_products_in_search);

Then you can call {$total_products_in_search} from search_result.tpl

Hope someone finds this helpful.

John
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:51 AM.

   

 
X-Cart forums © 2001-2020