View Single Post
  #12  
Old 12-01-2007, 06:10 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default Re: Showing products by price range

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
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote