Ecart shipping rules
Has anyone heard of this I have created two shipping rules based on the rule:
Number of items with a specific column value
It works perfectly for the one that is top in the list but not for the second one. If i then select the second one and move it to the top the second one works and now the one that was at the top no longer works.
In short which ever one is at the top of the list works until moved down the list. The code in ecart is:
//start node
//eCart Rule
function WAEC_Stoveworlduk_fittings() {
$totalShipping = 0;
if (false && (($this->ConditionalTotal("Quantity", "shippingCategory", "Fittings") > 0))) {
$totalShipping += $_SESSION['shipcostfittings'];//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
//eCart Rule
function WAEC_Stoveworlduk_stoves() {
$totalShipping = 0;
if (true && (($this->ConditionalTotal("Quantity", "shippingCategory", "Stoves") > 0))) {
$totalShipping += $_SESSION['shipcoststove'];//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
//end node
In the above the rule for Fittings shipping will work as it is top of the list until i move it down in the ecart shipping rules section then the stoves rule will work.
Any help appreciated,
Fully