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

Shop by Price feature?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 10-13-2004, 12:43 PM
 
adamsteinhoff adamsteinhoff is offline
 

Member
  
Join Date: Sep 2004
Posts: 19
 

Default

I have the menu setup now, but when I click any of the levels the main page changes to the advanced search page, instead of having the items that match that range. Is there something that I have missed?

Thanks,
__________________
X-Cart 4.0.3
PHP 4.3.8
OS Linux
Perl 5.006001
XML 1.95.6
Reply With Quote
  #12  
Old 10-14-2004, 04:53 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

Quote:
Originally Posted by adamsteinhoff
I have the menu setup now, but when I click any of the levels the main page changes to the advanced search page, instead of having the items that match that range. Is there something that I have missed?

Thanks,

The above post is for veriosn 3.5.x

Version 4.0.x search works completely different. It receives its variables via POST rather than GET so you can not specify them in the URL.
Reply With Quote
  #13  
Old 10-14-2004, 04:57 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

OK... I'll be nice today. Here is a Shop by Price for 4.0.x

Code:
{capture name=menu} <form style="margin-top: 0; margin-bottom: 0" method="POST" action="search.php" name="productsearchform1"> <input type="hidden" name="mode" value="search" /> <input type="hidden" name="posted_data[price_min]" value="1" /> <input type="hidden" name="posted_data[price_max]" value="100" /> $1-$100 </form> <form style="margin-top: 0; margin-bottom: 0" method="POST" action="search.php" name="productsearchform2"> <input type="hidden" name="mode" value="search" /> <input type="hidden" name="posted_data[price_min]" value="100" /> <input type="hidden" name="posted_data[price_max]" value="250" /> $100-$250 </form> <form style="margin-top: 0; margin-bottom: 0" method="POST" action="search.php" name="productsearchform3"> <input type="hidden" name="mode" value="search" /> <input type="hidden" name="posted_data[price_min]" value="250" /> <input type="hidden" name="posted_data[price_max]" value="500" /> $250-$500 </form> <form style="margin-top: 0; margin-bottom: 0" method="POST" action="search.php" name="productsearchform4"> <input type="hidden" name="mode" value="search" /> <input type="hidden" name="posted_data[price_min]" value="500" /> <input type="hidden" name="posted_data[price_max]" value="1000" /> $500-$1000 </form> <form style="margin-top: 0; margin-bottom: 0" method="POST" action="search.php" name="productsearchform5"> <input type="hidden" name="mode" value="search" /> <input type="hidden" name="posted_data[price_min]" value="1000" /> <input type="hidden" name="posted_data[price_max]" value="10000" /> $1000-$10000 </form> {/capture} { include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title="Price Range" menu_content=$smarty.capture.menu }
Reply With Quote
  #14  
Old 10-14-2004, 07:30 AM
 
zardos zardos is offline
 

Senior Member
  
Join Date: Jun 2004
Location: UK England
Posts: 140
 

Default

Thanks for being nice today "TelaFirma" nice mod.

AngelaCarolPears.com well detailed site very nice.
__________________
X-Cart V4.0.18
PHP 4.3.10
MySQL Server 4.0.22
Apache/1.3.33 (unix)
OS - Linux
Reply With Quote
  #15  
Old 10-14-2004, 07:45 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

Thank you

I figured well.. people are gonna be lifting the code from the site anyway.. I may as well post it here and hope that people go there now to buy stuff instead

[/shamless plug]
Reply With Quote
  #16  
Old 10-14-2004, 10:38 AM
 
adamsteinhoff adamsteinhoff is offline
 

Member
  
Join Date: Sep 2004
Posts: 19
 

Default

Quote:
Originally Posted by TelaFirma
OK... I'll be nice today. Here is a Shop by Price for 4.0.x

Thank you SO much... I am getting to the point where I know enough to be dangerous, but getting results takes a lot more time than I have right now...

Hopefully, in the next few months, I can start helping out the newbies....

Adam
__________________
X-Cart 4.0.3
PHP 4.3.8
OS Linux
Perl 5.006001
XML 1.95.6
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 04:20 PM.

   

 
X-Cart forums © 2001-2020