Shipping Rate Based on percentage of weight
Hello Support,
This may have been asked already but I am unable to locate any post in reference to my question.
I currently have a flat rate shipping rule say total weight 100 times 1.05 = $105.00
The problem is the cart will add another $105.00 if the customer purchases 2 items of the same.
I want to be able to add say an extra total weight time 0.30 per next item without have a complete new rule, so I want to combine this within the current rule.
Any help would be appreciated.
Snippet below:
//eCart Rule
function WAEC_eCart1_StandardPost() {
$totalShipping = 0;
if (true && ((sizeof($this->Items) > 0) && ((isset($_SESSION['ship_ctn'])?$_SESSION['ship_ctn']:"") == "AU") && ((isset($_SESSION['ship_mtd'])?$_SESSION['ship_mtd']:"") == "3"))) {
$totalShipping += ($this->TotalColumn("TotalWeight") * 1.08);//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule