View Single Post
  #5  
Old 11-19-2009, 01:39 PM
 
Regs Regs is offline
 

Senior Member
  
Join Date: Apr 2003
Location: Vancouver BC
Posts: 134
 

Default Re: shop by price mod?

Quote:
Originally Posted by flyclothing
Ashley,

I just did this one for 4.2.3

{capture name=menu}
<ul>
<li><strong><a href="search.php?mode=search&including=all&price_m in=1& price_max=25&sort=price&sort_direction=0">
$1-$25</a></strong></li>
<li><strong>
<a href="search.php?mode=search&including=all&price_m in=26& price_max=50&sort=price&sort_direction=0">$26-$50</a></strong></li>
<li><strong>
<a href="search.php?mode=search&including=all&price_m in=51& price_max=75&sort=price&sort_direction=0">$51-$75</a></strong></li>
<li><strong>
<a href="search.php?mode=search&including=all&price_m in=76& price_max=100&sort=price&sort_direction=0">$76-100</a></strong></li>
<li><strong>
<a href="search.php?mode=search&including=all&price_m in=100& price_max=500&sort=price&sort_direction=0">$100+</a></strong></li>
</ul>
{assign var="additional_class" value="menu-categories-list"}
{/capture}
{include file="customer/menu_dialog.tpl" title="Shop By Price" content=$smarty.capture.menu}
Excellent!

Had to modify it to make work for me though. There are a couple of spaces in your various links that need to be removed. Additionally, I found that the "&sort=price&sort_direction=0" made the links only search one category? Weird - removal of that bit of code in the links makes it all well for me (also working with 4.2.3)

Cheers,

Regs.
__________________
x-cart 4.2.3 & 4.6.0
Reply With Quote