View Single Post
  #6  
Old 02-09-2012, 04:44 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default Re: Adding a blank line..

OK, leave the original if statement as it was then:

{if $discount gt 0}
<font class="MarketPrice">{$lng.lbl_market_price}: <s>
{include file="currency.tpl" value=$products[product].list_price}
</s></font><br />
{/if}

Just before that if statement, there should be another if statement that starts:
{if $products[product].list_price gt 0 and $products[product].taxed_price lt $products[product].list_price}

We will use that for the {else}

Add this then, immediately after your first, original if statement.

{else}
<br /><br />


So you should have something looking like this:


{if $products[product].list_price gt 0 and $products[product].taxed_price lt $products[product].list_price}
{math equation="100-(price/lprice)*100" price=$products[product].taxed_price lprice=$products[product].list_price format="%3.0f" assign=discount}
{if $discount gt 0}
<font class="MarketPrice">{$lng.lbl_market_price}: <s>
{include file="currency.tpl" value=$products[product].list_price}
</s></font><br />
{/if}
{else}
<br /><br />
{/if}

Let me know if that makes sense.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote