Jump to content

[Error] reduction_amount_display


Recommended Posts

I have this code for amount, edit by me: 
 


{if $product.specific_prices.reduction_type == 'amount'}<span class="price-percent-reduction"><font size="3">Reducere</font></span><span class="price-percent-reduction">-{convertPrice price=$productPriceWithoutReduction-$productPrice|floatval}</span> {/if} 

And this is original code from product.tpl for amount.

<p id="reduction_amount" {if !$product->specificPrice || $product->specificPrice.reduction_type != 'amount' || $product->specificPrice.reduction|floatval ==0} style="display:none"{/if}>
<span id="reduction_amount_display">
{if $product->specificPrice && $product->specificPrice.reduction_type == 'amount' && $product->specificPrice.reduction|floatval !=0}
-{convertPrice price=$productPriceWithoutReduction-$productPrice|floatval}
{/if}
</span>

 

And this is for the percentage, work fine:
 

{if $product.specific_prices.reduction_type == 'percentage'}<span class="price-percent-reduction"><font size="3">Reducere</font></span><span class="price-percent-reduction">-{$product.specific_prices.reduction * 100}%</span> {/if}

 
 
I add a photo, i have problems with show price with reduction on products list.
 
http://postimg.org/image/msnkv0zk7/

Edited by FiestaZero (see edit history)
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...