Custom Calculations
Have have this custom calculation for shipping.
totalshipping = abs([Shipableitem] == 1) * ([Price] * [Quantity])
How can I subtract all discounts?
Basically I have Free shipping triggered if totalshipping is over $50.00 dollars.
This does not take into account any discounts.
How can I trigger Free Shipping if over $50.00 after discounts?
Here's my Free Shipping Rule:
//eCart Rule
function WAEC_ssdcart_FreeShipping() {
$totalDiscount = 0;
if (true && (($this->TotalColumn("totalshipping") >= 50.00) && ((isset($_SESSION['eCartCheckoutForm_shipping_country'])?$_SESSION['eCartCheckoutForm_shipping_country']:"") == "US") && ((isset($_SESSION['eCartCheckoutForm_shipping_type'])?$_SESSION['eCartCheckoutForm_shipping_type']:"") == "ST"))) {
$totalDiscount += $this->GetShipping();//Result
}
return WA_eCart_FormatNumber($totalDiscount, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
Thanks