If your still working on this I did this to a store today I've been 'tweaking' a bit. Hoped to easily find the answer here but no go and had to think a bit..bummer
anyway, you can just about pull most of what you need out of products.tpl and then remove the array portion of the code and remember you are working with $product in product.tpl and not $products as it is in products.tpl. So, this
$products[product].taxed_price would change to
$product.taxed_price.
Here's what I've got so far which would probably work for you though I'm further customizing it.
Quote:
{if $product.taxed_price ne 0 || $variants ne ''}
{if $product.list_price gt 0 and $product.taxed_price lt $product.list_price}
<FONT class="ProductPrice">{$lng.lbl_our_price}: {include file="currency.tpl" value=$product.taxed_price}</FONT>
{math equation="100-(price/lprice)*100" price=$product.taxed_price lprice=$product.list_price format="%d" assign=discount}
{math equation="(lprice-price)" price=$product.taxed_price lprice=$product.list_price format="%.2f" assign=rdiscount}
{if $discount gt 0}
<FONT class="MarketPrice">{$lng.lbl_market_price}:
{include file="currency.tpl" value=$product.list_price}
</FONT>
{/if}
{/if}
<FONT class="MarketPrice">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.taxed_price}{if $discount gt 0}{$lng.lbl_save_price} ${$rdiscount}({$discount}%)</FONT>{/if}
{/if}
|