This is a great tool. I have followed the instructions and it does indeed put the menu where I wanted it. Just one problem - when you mouse over the price range items, there is no hyperlink, it is just text. Could it be that this doesn't work with the latest branch 4.0.7? Our store is at
www.swisswatchstyles.com/shop .
Regards,
Jay
Quote:
Originally Posted by TelaFirma
Create a file named shop_by_price.tpl in the /skin1/customer/ directory. In this file put this code:
Code:
{capture name=menu}
<form style="margin-top: 0; margin-bottom: 0" method="POST" action="search.php" name="productsearchform1">
<input type="hidden" name="mode" value="search">
<input type="hidden" name="posted_data[price_min]" value="1">
<input type="hidden" name="posted_data[price_max]" value="100">
$1-$100
</form>
<form style="margin-top: 0; margin-bottom: 0" method="POST" action="search.php" name="productsearchform2">
<input type="hidden" name="mode" value="search">
<input type="hidden" name="posted_data[price_min]" value="100">
<input type="hidden" name="posted_data[price_max]" value="250">
$100-$250
</form>
<form style="margin-top: 0; margin-bottom: 0" method="POST" action="search.php" name="productsearchform3">
<input type="hidden" name="mode" value="search">
<input type="hidden" name="posted_data[price_min]" value="250">
<input type="hidden" name="posted_data[price_max]" value="500">
$250-$500
</form>
<form style="margin-top: 0; margin-bottom: 0" method="POST" action="search.php" name="productsearchform4">
<input type="hidden" name="mode" value="search">
<input type="hidden" name="posted_data[price_min]" value="500">
<input type="hidden" name="posted_data[price_max]" value="1000">
$500-$1000
</form>
<form style="margin-top: 0; margin-bottom: 0" method="POST" action="search.php" name="productsearchform5">
<input type="hidden" name="mode" value="search">
<input type="hidden" name="posted_data[price_min]" value="1000">
<input type="hidden" name="posted_data[price_max]" value="10000">
$1000-$10000
</form>
{/capture}
{ include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title="Shop by Price" menu_content=$smarty.capture.menu }
Then just where you want this menu, call it with:
Code:
{ include file="customer/shop_by_price.tpl" }
|