Jump to content

Discount problems!


Boardhouse™

Recommended Posts

Hello all!

 

So, yesterday I decided to set a 40% discount on some products. The price of the product(s) is/are 4995 kr.

When the final price shows it says: 2997 kr as the final price, it is possible to round it down to 2995?

 

post-1266789-0-69485700-1465728869_thumb.png

 

 

Another shop, with the same theme as we have.. They have solved the problem somehow..

 

post-1266789-0-22776900-1465728870_thumb.png

 

Thanks,

Should yesterday put off certain products in the shop , has 4995 as the base price and thought put 40 % discount on it. It shows that in 2997 the final price, it is possible to round down to 2995 ?

post-1266789-0-69485700-1465728869_thumb.png

post-1266789-0-22776900-1465728870_thumb.png

Link to comment
Share on other sites

After looking at that screenshot, I think the easiest solution is to round the discount percent. You should be able to do that by changing lines 80 and 144 (in the default PrestaShop v1.6.1.5 theme) of product-list.tpl from:

											<span class="price-percent-reduction">-{$product.specific_prices.reduction * 100}%</span>

to:

											<span class="price-percent-reduction">-{($product.specific_prices.reduction * 100)|round}%</span>

This should round 40.04% to 40%.

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