Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Price Sensitive Discount Problem


Recommended Posts

Hi everyone,


this is probably very easy for whoever codes in PHP/MySQL...

I installed the contrib 204 (Price Sensitive Discounts) which is exactly what I was looking for.


Unfortunately, even though I installed it perfectly, sorting it #2 after sub-total, but before shipping, tax and total, putting "false" for both tax and shipping (I only want the discount applied to the sub-total) and recalculating the tax with the discounted sub-total.


Well, I don't get the right discount.

I put:

100:10,250:20,500:30,1000:40 for the discount percentage


I then tested it and with $200 in my sub-total, I should have 10% or $20 discount.

But for some reason, it displays "Price break Discount: $21.55" and not $20.


Nevertheless, if there was no shipping and taxes, the total would be $180 which is correct!!!

But the fact that the output is $21.55 and not $20 makes a problem...


Here is the whole output so you can understand it better:


Sub-Total: $200.00

Price break Discount: $21.55

Total: $180.00


The total is correct but I know that some people will email me telling me (with that example) that the total should be $178.45 and not $180 because the discount is $21.55


The problem is that it's adding the $tod_amount to the $od_amount which is causing the actual discount amount

to be displayed incorrectly. Does anyone know how to solve this?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...