hello peter, i've sent you an email with the update in this case.
the quickest fix is to make sure that vm3 calculates shipping before coupon by commenting this line in (in vm2 coupon was calculated after shipping calculation):
- Code: Select all
if(!empty($this->_cart->cartData['taxRulesBill']['calc_value_mathop']) and $this->_cart->cartData['taxRulesBill']['calc_value_mathop'] == 'avalara')
so it looks like:
- Code: Select all
// if(!empty($this->_cart->cartData['taxRulesBill']['calc_value_mathop']) and $this->_cart->cartData['taxRulesBill']['calc_value_mathop'] == 'avalara')
i fixed this within the future opc version by calculating the shiping twice - once before the calculation and secondly during the calculation.
in vm3 checout without opc this does not work as well, BUT since the calculation is called multiple times per the cart and thus the shipping calculation is also done multiple times per a single request, the gift certificate is calculated properly.
due to the same problem - order of calculation (totals / coupon /shipping /payment)
the payment fees if used will also not be included within the gift certificates.
best regards, stan