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

Another advanced seach question
 
Reply
   X-Cart forums > X-Cart 4 > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-13-2003, 04:04 AM
 
cyberactive cyberactive is offline
 

Senior Member
  
Join Date: Sep 2002
Location: The Netherlands
Posts: 115
 

Default Another advanced seach question

Hello there!

I want to make a pulldown menu in the advanced search page.
This is not that difficult, but I want the pulldown to hold the contents of param03 of the products table.

What I've did so far:
Code:
<select name="Genre"> {section name=genre loop=$products} <option value="{ $products[genre].param03}"{$products[genre].param03|escape}</option> {/section} </select>

But this won't work.
I just want the customer to search thru the available genres, stored in the param03 of the products table.....

Can someone help me out here?

Next I want an nice and userfriendly way of showing the products. Perhaps a customer can browse all products based on the selected genre and the selected platform? (i'm building an online platform game shop, you see)
Is that possible too?
__________________
Dennis

Shop @ http://www.cyberlease.nl
Version shop: 3.4.4 (shop is NOT life anymore)
Mods:
- Dutch language
- Changed payment methods and shipping methods
- Package tracking system for Dutch TPGpost.
Reply With Quote
  #2  
Old 02-13-2003, 05:07 PM
 
vincentjiang vincentjiang is offline
 

Member
  
Join Date: Dec 2002
Posts: 29
 

Default

The $products is not availabe in the advance_search.tpl...you have to assign this variables from somewhere or passing it from somewhere....
Reply With Quote
  #3  
Old 02-14-2003, 12:05 AM
 
cyberactive cyberactive is offline
 

Senior Member
  
Join Date: Sep 2002
Location: The Netherlands
Posts: 115
 

Default

Thanks Vince....it helped me a lot.

The above code was correct, but the $products was not available in the search.php

I've added the following to search.php
Code:
$products = func_query("select distinct param03 from $sql_tbl[products] where $sql_tbl[products].param03 <>'' order by $sql_tbl[products].param03 asc"); $smarty->assign("products",$products);
Right after the require lines.
__________________
Dennis

Shop @ http://www.cyberlease.nl
Version shop: 3.4.4 (shop is NOT life anymore)
Mods:
- Dutch language
- Changed payment methods and shipping methods
- Package tracking system for Dutch TPGpost.
Reply With Quote
  #4  
Old 02-14-2003, 09:07 AM
 
vincentjiang vincentjiang is offline
 

Member
  
Join Date: Dec 2002
Posts: 29
 

Default

u welcome.....
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > 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 08:46 AM.

   

 
X-Cart forums © 2001-2020