Forums / Built-in Shipping and Payment Modules / hide zone rates shipping altogether if not available for country

hide zone rates shipping altogether if not available for country

Started by vandiermen on 22 Oct 2012, 4:28 PM · Views: 892

Results 1 to 3 of 3
22 Oct 2012, 4:28 PM
#1
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

hide zone rates shipping altogether if not available for country

instead of saying 'No shipping available to the selected country' if excluded i would just like to hide it

I don't know what to use

if ($order->delivery['country']['iso_code_2'] == 'AU')
$this->enabled = false;
} else {
$this->enabled = true;
}

if ($order->delivery['country']->'id' == '13')
$this->enabled = false;
} else {
$this->enabled = true;
}
zone_id

23 Oct 2012, 4:04 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: hide zone rates shipping altogether if not available for country

In the Zone Rate zones there is a setting for:

Skip Countries, use a comma separated list of the two character ISO country codes
Disable for the following Countries:

If you enter the Countries that this is not available for, then Zone Rate zones does not show ... so it will turn that off automatically for you ...

Example: You do not want to use this shipping module for AU, just enter that, or any of the countries you do not want this module for, as the Skip Countries ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

23 Oct 2012, 6:00 PM
#3
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Re: hide zone rates shipping altogether if not available for country

Ajeh:

In the Zone Rate zones there is a setting for:
Example: You do not want to use this shipping module for AU, just enter that, or any of the countries you do not want this module for, as the Skip Countries ...

I used a lower case au before. I changed to AU after reading your message. Thanks.