FiestaZero Posted April 19, 2016 Share Posted April 19, 2016 (edited) 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 April 19, 2016 by FiestaZero (see edit history) Link to comment Share on other sites More sharing options...
tdr170 Posted April 19, 2016 Share Posted April 19, 2016 Sorry but need more info as I do not see the issue from the pic you posted. You also did not make it clear what the issue is. It is alwas better to give a link to the shop so the issue can be seen first hand. Link to comment Share on other sites More sharing options...
FiestaZero Posted April 20, 2016 Author Share Posted April 20, 2016 I fixed, i replace "convertPrice price=$productPriceWithoutReduction-$productPrice|floatval" with "$product.reduction" Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now