Jump to content

Is there a way to modify the total price calculation when a % discount is applied?


Recommended Posts

Is there a way to modify the total price calculation when a % discount is applied?

Currently, my cart adds up the product prices + tax + shipping, THEN takes the 10% discount off if the voucher is applied.

I want the voucher to be applied to the total of the product prices ONLY. Discount should not be taken off shipping or tax.

Is there a configuration setting I have missed? Is there something in the template to modify?

Thanks!

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...
  • 4 weeks later...
  • 1 month later...
Versie 1.1:
Open file / classes / Discount.php
Op regel 197 van de plaats:

$totalAmount = floatval ( $order_total_products ) + floatval ( $shipping_fees );
change:
$totalAmount = floatval ( $order_total_products );

This must be working



after testing, it's not working unfortunately. same as topic, i think shipping/tax should not be subject to a discount. i intend to modify discount.php but failed. Any advise guys?
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...