shipping per country - PayPal failure
hi guys
I'm having problems setting up a different shipping cost per country selected on the checkout page. I just want one price for GB and another price for any other selection.
I've set up two shipping rules as follows:
//eCart Rule
function WAEC_eCart1_std_shipping() {
$totalShipping = 0;
if (true && (((isset($_SESSION['eCartCheckoutForm_country'])?$_SESSION['eCartCheckoutForm_country']:"") == "GB"))) {
$totalShipping += floatVal("10");//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
//eCart Rule
function WAEC_eCart1_shipping_row() {
$totalShipping = 0;
if (true && (((isset($_SESSION['eCartCheckoutForm_country'])?$_SESSION['eCartCheckoutForm_country']:"") != "GB"))) {
$totalShipping += floatVal("15");//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
here's my SESSION variable on the checkout page:
@session_start();
if(!isset($_SESSION["eCartCheckoutForm_country"])) {
$_SESSION["eCartCheckoutForm_country"] = "".(WA_getSavedFormValue("CheckoutWizard_NewFromBlank_Default","Country")) ."";
}
and here's my cart page live (you can add a misc item to test it):
http://www.rtmedia.co.uk/test/davidhayward/cart.php
any ideas what I've done wrong ?
many thanks as always :)