Thanks for your help Craig,
That works, all the correct totals go through to PayPal gateway, and in the specified country code language.
However, only if the top line of code//Shipping (in this case "ShippingGB" = "6.25")is selected, does the shipping cost get shown above the Total, on file confirm.php.
Any Ideas?
Johnnie
From ecart1_PHP.php
//Shipping
$this->Shipping[] = new WA_eCart_Rule(urldecode("ShippingGB"), true, "WAEC_eCart1_ShippingGB");
$this->Shipping[] = new WA_eCart_Rule(urldecode("ShippingEurope"), true, "WAEC_eCart1_ShippingEurope");
$this->Shipping[] = new WA_eCart_Rule(urldecode("ShippingUSA"), true, "WAEC_eCart1_ShippingUSA");
}
//end node
//eCart Rule
function WAEC_eCart1_ShippingGB() {
$totalShipping = 0;
if (true && (((isset($_SESSION['eCartCheckoutForm_country'])?$_SESSION['eCartCheckoutForm_country']:"") == "GB"))) {
$totalShipping += 6.25;//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
//eCart Rule
function WAEC_eCart1_ShippingEurope() {
$totalShipping = 0;
if (true && (((isset($_SESSION['eCartCheckoutForm_country'])?$_SESSION['eCartCheckoutForm_country']:"") == "FR"))) {
$totalShipping += 7.60;//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
//eCart Rule
function WAEC_eCart1_ShippingUSA() {
$totalShipping = 0;
if (true && (((isset($_SESSION['eCartCheckoutForm_country'])?$_SESSION['eCartCheckoutForm_country']:"") == "US"))) {
$totalShipping += 9.5;//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule