Boardhouse™ Posted June 12, 2016 Share Posted June 12, 2016 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? Another shop, with the same theme as we have.. They have solved the problem somehow.. 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 ? Link to comment Share on other sites More sharing options...
rocky Posted June 13, 2016 Share Posted June 13, 2016 Have you tried all the round modes on the Preferences > General tab? Those are the only rounding options I'm aware of in PrestaShop. Link to comment Share on other sites More sharing options...
Boardhouse™ Posted June 13, 2016 Author Share Posted June 13, 2016 Have you tried all the round modes on the Preferences > General tab? Those are the only rounding options I'm aware of in PrestaShop. I have, and it changes nothing.. :/ http://prntscr.com/bfref8 Link to comment Share on other sites More sharing options...
rocky Posted June 13, 2016 Share Posted June 13, 2016 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 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