bosniamaj Posted November 30, 2020 Share Posted November 30, 2020 I have problems with discount amount on some products, but not on all of them. Somewhere it displays some irrelevant amount, like here (it shouldn't be -1677.501, but -180; second photo is ok with -120) : And somwhere it displays too many decimal numbers, like here with 89.999999 : I'm using paid theme, but the support is lame, and I edited some stuff myself already. I would appreciate some help on fixing this, please Link to comment Share on other sites More sharing options...
bosniamaj Posted December 2, 2020 Author Share Posted December 2, 2020 On 12/1/2020 at 10:37 AM, ndiaga said: Hi, I think it is related to modules used by your theme. This is the code from catalog/_partials/miniatures/product.tpl that is executed here: <span> {if $product.specific_prices && $product.specific_prices.reduction_type == 'percentage'} -{$product.specific_prices.reduction|escape:'quotes':'UTF-8' * 100}% {else} -{$product.price_without_reduction-$product.price|floatval} {/if} </span> For now, I managed to hide this weird amount with css, and display the normal amount which had display:none in css 🤔 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