Inconsistent and unexpected discount behavior on 50% product discount

RobFarmLink
Shopify Partner
37 2 26
Has anyone seen this inconsistent discount rounding behavior in checkout? Two oddities:
  1. I have a product 50% discount on one store that was returning a different line amount on the same $3.99 Ice Cream Bananas on two different stores. Then, on one store I edited the discount by toggling Order discounts on and then off again and now they both return $1,110.00 as the line price.
  2. As a customer, I'd expect the line to be $1,107.23 (50% of the total line) so that's unexpected behavior #2, but the more concerning thing was that one store was doing that and the other wasn't until I saved the discount in the Admin UI again. I at least need to know what to expect.

Screenshot 2024-04-28 at 11.17.37 AM.pngScreenshot 2024-04-28 at 11.17.44 AM.png

Replies 6 (6)

JatinSangani
Shopify Partner
2 0 0

@RobFarmLink 

What I can see from calculation is, One is calculated on product price where another one is calculated on order total,


Order Total base discount :
3.99 * 555 = 2214.45 / 2 = 1107.225 = round up to 2 decimal = 1107.22


Product base discount :
3.99 / 2 = 1.995 = round up to 2 decimal (1.99) * 555 = 1104.45

Make sure you have same discount rule applied on both store.

RobFarmLink
Shopify Partner
37 2 26

Thanks for the reply. They were for sure identical at the time of the screenshot. It just took toggling the order combination checkbox to change the behavior. I'm still not sure what happened.

JatinSangani
Shopify Partner
2 0 0

Are you using any App for discount? OR it's within Shopify discount?

RobFarmLink
Shopify Partner
37 2 26

No app, just a regular Shopify discount made via the admin UI. Very strange. It could be user error but I'm 99.9999999% sure it was behaving oddly until I kicked a save on it. I don't know that we'll solve it but thank you @JatinSangani.

baysidesoapwork
Visitor
1 0 0

This is an ongoing issue, for years with how discounts get calculated.  In the most simple fashion, a 10% discount isn't always 10%.  Sometimes it's ever so slightly less.  So for an item of 7.75, Shopify rounds the discount down to 0.77, when in fact it should be 0.78.  Yeah, some customers may not complain, but then some surely do, such as one I had today.  The answer is "this is expected behavior, as the discount round to 2 DP"  However, the entire planet, math remains the same and anything above 0.05 is rounded up.  Shopify just dropping off the 3rd decimal of an item's price is just beyond absurd.  To the point in some states, offering a discount less than advertised, regardless of how small, is still false advertising and can cause some harm to a business.

Summer
Shopify Staff
1326 318 226

Hey, @baysidesoapwork!

 

I'm sorry to hear about the issue you're experiencing with discounts. I understand that this is definitely important so we'd love to look into it and find a possible solution. Please feel free to create a support ticket by visiting our Help Center and starting a chat with the AI assistant. You will then be connected with one of our support advisors who will investigate the concern and relay it to an escalated team if necessary.

Summer | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog