Jump to content

Why this html print doesn't work?


dadodistefano

Recommended Posts

Hi,

I have a simple question, but i cannot find a solution.

Here's my code (an edited version of product-list.tpl):
 

{if !$priceDisplay}
<span class="price product-price">{convertPrice price=$product.price}</span>
<p style="font-size: 11px; line-height:30px;">{l s='IT Tax included'}</p>
{else}
<span class="price product-price">{convertPrice price=$product.price_tax_exc}</span>
<p style="font-size: 11px; line-height:30px;">{l s='IT Tax excluded'}</p>
{/if}

 

Everything works fine, but when "$product.price_tax_exc" is printed, the string "{l s='IT Tax excluded'}" is never displayed. 

It seems that "<p style="font-size: 11px; line-height:30px;">{l s='IT Tax excluded'}</p>" isn't read by the system.

The product list is displayed with prices NO TAX (and that's ok, in my case), but in prints {l s='IT Tax included'}, not {l s='IT Tax excluded'}

Any suggestions?

Link to comment
Share on other sites

Or - as a test - get rid of the style parameter, probably it cut's of there due to an unknown reason. In any way, I wouln't use inline styling.

style="font-size: 11px; line-height:30px;"

Any update on this issue would be appreciated.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...