Jump to content

Problem with discounted amount


bosniamaj

Recommended Posts

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) :

Screenshot_24.png.ae2c0b5974c0fc1c2183e83dfea624bd.png

And somwhere it displays too many decimal numbers, like here with 89.999999 :

Screenshot_25.png.0323e4c6e94100cd3d1a51b6e11a8ed8.png

 

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

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

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...