View Single Post
  #14  
Old 08-02-2012, 12:20 AM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default Re: Showing products by price range

Quote:
Originally Posted by shan
Heres a simple way to do this for 4.1.x

make a new template called shop_by_price.tpl and upload it to skin1 directory

open skin1/customer/home.tpl and add this where you want the menu to show up. maybe after the include for categories.tpl etc

use this to include the template to your page

Code:
{ include file="shop_by_price.tpl" }

Heres the code for shop_by_price.tpl

Code:
{* $Id: shop_by_price.tpl *} {capture name=menu} <a href="search.php?mode=search&sort=price&sort_direction=0&including=all&price_max=50">ё0 - ё50</a><BR> <a href="search.php?mode=search&sort=price&sort_direction=0&including=all&price_min=50&price_max=100">ё50 - ё100</a><BR> <a href="search.php?mode=search&sort=price&sort_direction=0&including=all&price_min=100&price_max=200">ё100 - ё200</a><BR> <a href="search.php?mode=search&sort=price&sort_direction=0&including=all&price_min=200&price_max=300">ё200 - ё300</a><BR> <a href="search.php?mode=search&sort=price&sort_direction=0&including=all&price_min=300">ё300 +</a> {/capture} { include file="menu.tpl" dingbats="dingbats_help.gif" menu_title="Shop By Price" menu_content=$smarty.capture.menu }

adjust to suit

But if I goes into the particular category then it is not working.How to work in category level?
__________________
4.6.1 Platinum


Reply With Quote