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

Search Form and Search Results on same page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-17-2008, 05:42 PM
 
toltion toltion is offline
 

Advanced Member
  
Join Date: Jun 2007
Posts: 39
 

Default Search Form and Search Results on same page

I've managed to show the Advanced Search form to the left of the search results except for the Manufacturers list box. I assumed that if was all on the same page everything would show, but I'm wrong. Apparently, $manufacturers is empty when products are listed on the page. Everything shows up when I go directly to "search.php" but not when the URL has "search.php?mode=search".

Is there a workaround for this? I'd really like to give the customer the opportunity to "search again" without having to go back to the main search page.

Thanks,

Tony
__________________
X-Cart Gold 4.1.9
Gift Registry/Special Offers
Advanced mini-cart
XC-SEO
Mulltiple Category/Product Templates
Also bought/recently viewed
Feedback reviewer/viewer bundle
Marketing Manager Pro bundle
many more mods
Reply With Quote
  #2  
Old 06-19-2008, 06:24 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: Search Form and Search Results on same page

Quote:
Originally Posted by toltion
I've managed to show the Advanced Search form to the left of the search results except for the Manufacturers list box. I assumed that if was all on the same page everything would show, but I'm wrong. Apparently, $manufacturers is empty when products are listed on the page. Everything shows up when I go directly to "search.php" but not when the URL has "search.php?mode=search".

Is there a workaround for this? I'd really like to give the customer the opportunity to "search again" without having to go back to the main search page.

Thanks,

Tony

Open file "skin1/customer/main/search_result.tpl", find next line

PHP Code:
{if $mode ne "search" or $products eq ""

and replace them with the following lines:

PHP Code:
{if 1 eq 1}
{*
{if 
$mode ne "search" or $products eq ""}
*} 
Reply With Quote
  #3  
Old 06-19-2008, 06:52 AM
 
toltion toltion is offline
 

Advanced Member
  
Join Date: Jun 2007
Posts: 39
 

Default Re: Search Form and Search Results on same page

Thanks for the quick reply Yurij, but the problem is not with the advanced search not showing, only the Manufacturers select box disappears. To see what's happening, go to -

http://ebubbles.aitg.com/search.php

Expand the Advanced Search and search for any Manufacturer. You'll see in the search results the Manufacturer select box is gone from the search form.

Thanks,

Tony
__________________
X-Cart Gold 4.1.9
Gift Registry/Special Offers
Advanced mini-cart
XC-SEO
Mulltiple Category/Product Templates
Also bought/recently viewed
Feedback reviewer/viewer bundle
Marketing Manager Pro bundle
many more mods
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 11:20 AM.

   

 
X-Cart forums © 2001-2020