So you only want to show the list price - not the regular price? In the backend, under modify product there is a spot for each product to have a list price and a price - which of these do you want to show up on these two templates?
And - you want it on both the thumbnail view of the product as well as the detail view of the product - when does the user actually see the price they get?
To just show list price you would modify the product.tpl code as such:
Code:
{if $product.price ne 0}
{if $product.list_price gt 0 and $product.price lt $product.list_price}
{math equation="100-(price/lprice)*100" price=$product.price lprice=$product.list_price format="%d" assign=discount}
<font class=MarketPrice><s>
{include file="currency.tpl" value=$product.list_price}
</s></font>
{/if}
{if $product.list_price eq ""}
{/if}
{* <font class=ProductPrice>{if $product.list_price gt 0 and $product.price lt $product.list_price}<font color=#FF0000>{/if}{if $product.list_price gt 0 and $product.price lt $product.list_price}{else}
{/if}
{if $product.list_price gt 0 and $product.price lt $product.list_price}{$lng.lbl_our_price}: {/if}{include file="currency.tpl" value=$product.price}</font><font class=MarketPrice>{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.price}</font>{if $config.Taxes.use_vat eq "Y" and $product.vat gt "0"}, {$lng.lbl_including_vat} {$product.vat}%{/if} *}
{else}
<font class=ProductPrice>{$lng.lbl_enter_your_price}</font>
{/if}
And for products.tpl as such:
Code:
{if $products[product].price ne 0}
{if $products[product].list_price gt 0 and $products[product].price lt $products[product].list_price}
{math equation="100-(price/lprice)*100" price=$products[product].price lprice=$products[product].list_price format="%d" assign=discount}
<font class=MarketPrice>{$lng.lbl_market_price}: <s>
{include file="currency.tpl" value=$products[product].list_price}
</s></font>
{/if}
{* <font class=ProductPrice>{$lng.lbl_our_price}: {include file="currency.tpl" value=$products[product].price}</font><font class=MarketPrice>{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$products[product].price}</font>{if $products[product].list_price gt 0 and $products[product].price lt $products[product].list_price}, save {$discount}%{/if}{if $config.Taxes.use_vat eq "Y" and $products[product].vat gt "0"}, {$lng.lbl_including_vat} {$products[product].vat}%{/if} *}
{else}
<font class=ProductPrice>{$lng.lbl_enter_your_price}</font>
{/if}
Instinctual
Colorado
X-Cart Versions 3.5.x - 4.0.x