Take the following order:
Products Total: $10
Shipping: $5
A user applies a $20 gift certificate to the order. Looking at the order in Virtuemart administration will show:
Products Total: $10
Coupon Discount: $10
Shipping: $0
I looked through ps_coupon_process.php and this appears to be the intended behavior. However, this makes it appear as though the shipping was free. I would rather the discount be applied like so:
Products Total: $10
Coupon Discount: $15
Shipping $5
This would be a more accurate reflection of what actually went on in the transaction. I'm guessing that it isn't done this way because of some limitation in the Virtuemart core that won't allow the Coupon Discount to be greater than the Products Total.
Seyi, could you please shed some light on this? I don't mind implementing a hack if necessary. Also, note that we are using a custom shipping module if that has anything to do with it.
Thanks
P.S. - Great extension, it has been really useful for us. And as a fellow PHP'er, thanks for writing code that is actually understandable without reading it 50 times :)
Products Total: $10
Shipping: $5
A user applies a $20 gift certificate to the order. Looking at the order in Virtuemart administration will show:
Products Total: $10
Coupon Discount: $10
Shipping: $0
I looked through ps_coupon_process.php and this appears to be the intended behavior. However, this makes it appear as though the shipping was free. I would rather the discount be applied like so:
Products Total: $10
Coupon Discount: $15
Shipping $5
This would be a more accurate reflection of what actually went on in the transaction. I'm guessing that it isn't done this way because of some limitation in the Virtuemart core that won't allow the Coupon Discount to be greater than the Products Total.
Seyi, could you please shed some light on this? I don't mind implementing a hack if necessary. Also, note that we are using a custom shipping module if that has anything to do with it.
Thanks
P.S. - Great extension, it has been really useful for us. And as a fellow PHP'er, thanks for writing code that is actually understandable without reading it 50 times :)