Hello again Linda et.al. - a similar problem as above!
Have all the functions that I can extract values from $_SESSION['cart'] been documented somewhere?!
My customer would like to disable credit card payment method (sagepay) when no valid shipping zones available for the shipping address/destination, allowing only Purchase Order.
So similar as above, but now I would need to see *in pseudo code*:
if ($_SESSION['cart']->check_if_valid_shippingzones_function_of_some_kind() == false)) {
// i.e. no valid shipping zones for this destination
// disable credit card payment method
$this->enabled = false;
} else {
$this->enabled = ((MODULE_PAYMENT_SAGEPAY_FORM_STATUS == 'True') ? true : false);
}
Thanks!
annika



