Can confirm this works in 4.5.2
Also, I didn't want tables so here's a css version:
Code:
{* $Id: shop_by_price.tpl,v 1.20 2009/04/23 11:35:03 max Exp $ vim: set ts=2 sw=2 sts=2 et: *} {capture name=price}
<div class="shopbyprice_link">
<form style="margin-top: 0; margin-bottom: 0" method="POST" action="search.php" name="productsearch_price_5">
<input type="hidden" name="mode" value="search">
<input type="hidden" name="posted_data[price_min]" value="0">
<input type="hidden" name="posted_data[price_max]" value="40"> <a class="VertMenuItems" href="javascript:document.productsearch_price_5.submit()" >ё0-ё40</a>
</form>
</div>
<div class="shopbyprice_link">
<form style="margin-top: 0; margin-bottom: 0" method="POST" action="search.php" name="productsearch_price_10">
<input type="hidden" name="mode" value="search" />
<input type="hidden" name="posted_data[price_min]" value="40" />
<input type="hidden" name="posted_data[price_max]" value="80" /> <a class="VertMenuItems" href="javascript:document.productsearch_price_10.submit()" >ё40-ё80</a>
</form>
</div>
<div class="shopbyprice_link">
<form style="margin-top: 0; margin-bottom: 0" method="POST" action="search.php" name="productsearch_price_15">
<input type="hidden" name="mode" value="search">
<input type="hidden" name="posted_data[price_min]" value="80">
<input type="hidden" name="posted_data[price_max]" value="120"> <a class="VertMenuItems" href="javascript:document.productsearch_price_15.submit()" >ё80-ё120</a>
</form>
</div>
<div class="shopbyprice_link">
<form style="margin-top: 0; margin-bottom: 0" method="POST" action="search.php" name="productsearch_price_20">
<input type="hidden" name="mode" value="search">
<input type="hidden" name="posted_data[price_min]" value="120">
<input type="hidden" name="posted_data[price_max]" value="160"> <a class="VertMenuItems" href="javascript:document.productsearch_price_20.submit()" >ё120-ё160</a>
</form>
</div>
<div class="shopbyprice_link">
<form style="margin-top: 0; margin-bottom: 0" method="POST" action="search.php" name="productsearch_price_25">
<input type="hidden" name="mode" value="search" />
<input type="hidden" name="posted_data[price_min]" value="160" />
<input type="hidden" name="posted_data[price_max]" value="220" /> <a class="VertMenuItems" href="javascript:document.productsearch_price_25.submit()" >ё160-ё220</a>
</form>
</div>
<div class="shopbyprice_link">
<form style="margin-top: 0; margin-bottom: 0" method="POST" action="search.php" name="productsearch_price_30">
<input type="hidden" name="mode" value="search">
<input type="hidden" name="posted_data[price_min]" value="220">
<input type="hidden" name="posted_data[price_max]" value="500"> <a class="VertMenuItems" href="javascript:document.productsearch_price_30.submit()" >ё220-ё500</a>
</form>
</div>
{/capture} {include file="customer/menu_dialog.tpl" title=$lng.lbl_Shop_by_Price content=$smarty.capture.price additional_class="menu-shopbyprice"}
And the CSS I used:
Code:
.shopbyprice_link {
width: 60px;
height: 20px;
float: left;
margin-right: 30px;
padding-top: 10px;
}
.shopbyprice_link a:link, .shopbyprice_link a:visited {
text-decoration: none;
font-weight: bold;
color: #000;
}