Jump to content

[ASK] Discount based on total price


Recommended Posts

Hi all,

I want to give discount to buyers based on the total price.
For example:
if the total price >= 100, the discount is 10%
if the total price >= 250, the discount is 15%
if the total price >= 500, the discount is 20%

I've tried to edit the order.php, but it only edit the amount displayed, not the actual data.
So, when it goes to payment.php, the total amount back to normal. I try to put code there.
Finally, I realize those things only edit the nominal displayed to customer.

When I'm looking to database, it's only provide space for giving discount when customer buy certain numbers of similar products, but it's not what I'm looking for. Or, is there any way to use the discount table to suit my need?

Thank you.

Link to comment
Share on other sites

  • 2 weeks later...
×
×
  • Create New...