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

Category sensitive search and menu bars

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-24-2003, 12:45 PM
 
issay issay is offline
 

Advanced Member
  
Join Date: Mar 2003
Posts: 59
 

Default Category sensitive search and menu bars

Is it possible to have a category sensitive search feature? Eg. when customer is in Computer>Hardware>Storage, a search box is to be available which has already selected the subcategory Storage. Customer's search will be restricted to this category by default.

And also, is it possible to change the vertical menu bars on both sides of the screen depedending on the category customer is currently in? What are the files needed to modify this?
Reply With Quote
  #2  
Old 12-01-2003, 12:03 AM
 
issay issay is offline
 

Advanced Member
  
Join Date: Mar 2003
Posts: 59
 

Default

I have been able to do category sensitive search using the following codes in a new .tpl file and then include this file in the customer/subcategories.tpl file. Additional categories can be included in the list...
Code:
<form action="search.php" name="productsearchbyprice_form"> <font color="#000000" size="2">Search in</font> <select name="in_category"> {section name=cat_num} <option value="{ $current_category.categoryid}">{$current_category.category|regex_replace:"/.*\//":""}</option> {/section} {if $current_category.categoryid ne 6} <option value=6>Bargain Center</option> {/if} <option value="">All Categories</option> </select> <font color="#000000" size="2">for</font> <input type="text" name="substring" size="20" value="{$smarty.get.substring}"> {include file="buttons/search.tpl"} </form>

check http://www.shopping.com.mv/mall for a demo. Select subcategories and the search category changes.... Hope this is of use to someone... Thanks
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 10:28 PM.

   

 
X-Cart forums © 2001-2020