Since I now have the number I need in a Session Value I simplified the shipping rule to:
//eCart Rule
function WAEC_eCart1_Country() {
$totalShipping = 0;
if (true && ((sizeof($this->Items) > 0) && ((isset($_SESSION['shipcountry'])?$_SESSION['shipcountry']:"") > "0"))) {
$totalShipping += "".$SESSION['shipcountry']."";//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
but it still ignores it.
Just to check, I substituted
"".$SESSION['shipcountry'].""
with 10, and the rule works fine, adding $10.00.
Has to be syntax.