Jump to content


Use this forum to post questions if you're looking for some specific module or if you need help with modules not listed below.
Photo

Making Specific Prices consistent on PrestaShop 8

pricing discounts prestashop 8.x rounding specific prices discounted prices

  • Please log in to reply
No replies to this topic

#1 gebiss

gebiss

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 31 October 2024 - 09:17 AM

Hi,

 

I am wondering if is possible to write a module (or fix the issue in any other way) for PrestaShop 8 that would make the product discounted prices (Specific prices) consistent throughout the shop and ordering process.

 

The issue comes from a fact (maybe it should be considered as bug) that PrestaShop 8.1 rounds Unit Price value, displays it but uses unrounded value for further calculations. This makes the calculations wrong. Example:
 
Product base price: £0.30
Discount from 1000pcs: 31%
Product price with discount applied: £0.207
 
PrestaShop 8.1, rounding method: Round on each line or Round on total makes the following calculations:
Screenshot2024-10-30at17_25_49.png.439ed
 

£0.21 * 1000 cannot be £207.00

 

The problem is that rounded Unit Price with discount is displayed (£0.21) but unrounded value is taken to the calculations (£0.207)

 

In PrestaShop 1.6 with Classical rounding mode the calculations were made correct - the rounded value was displayed and used for the calculations:

Screenshot2024-10-30at16_57_29.thumb.png

 

Possible approaches to resolve this:
 
1. Display rounded value and use it for further calculations (as it was in PrestaShop 1.6):
 
£0.21 * 1000 = £210.00
 
2. Display unrounded value (without increasing the currency Decimals for the entire shop) and use it for further calculations:
 
£0.207 * 1000 = £207.00
 
Can this be done or approached in any other way?

 

 

 

 





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users