How can I change create a shipping sale for flat amount. For example, all orders are $2.99 shipping?
Created
Open the modules/On_Sale/onsale_cart_shipping.php and find this code near line 73:
After insert:
This will then change the shipping charge to the amount set in the absolute ($) setting of the sale. For example: If you have a sale setup to discount $2.99, the final shipping the customer will be charged will be $2.99.
$new_rate = onsale_calc_shipping_price($onsale_shipping[$onsaleid], $shipping_wo_qualified, $v['shippingid'], $v['rate']);
After insert:
if ($onsale_shipping['discount']['type'] == 'abs'){
$new_rate = $onsale_shipping['discount']['amount'];
}
This will then change the shipping charge to the amount set in the absolute ($) setting of the sale. For example: If you have a sale setup to discount $2.99, the final shipping the customer will be charged will be $2.99.