Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2006
    Posts
    80
    Plugin Contributions
    0

    Default Shipping Zones - Zone 3 how to set to all other?

    i use shipping zone modul, zone 1-2 are working fine.
    I have used osc before zc - in the zone 3 in osc i was able to set to all others ...
    is this also possible in ZC?
    If i set to "all others" or "00" it is not working ...

    regards
    Ralph

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Shipping Zones - Zone 3 how to set to all other?

    Got a plan ...

    Edit the file:
    /includes/modules/shipping/zones.php

    Find the code:
    PHP Code:
          for ($i=1$i<=$this->num_zones$i++) {
            
    $countries_table constant('MODULE_SHIPPING_ZONES_COUNTRIES_' $i);
            
    $country_zones split("[,]"$countries_table);
            if (
    in_array($dest_country$country_zones)) {
              
    $dest_zone $i;
              break;
            }
          } 
    Change the code to read:
    PHP Code:
          for ($i=1$i<=$this->num_zones$i++) {
            
    $countries_table constant('MODULE_SHIPPING_ZONES_COUNTRIES_' $i);
            
    $country_zones split("[,]"$countries_table);
            if (
    in_array($dest_country$country_zones)) {
              
    $dest_zone $i;
              break;
            }
            if (
    in_array('00'$country_zones)) {
              
    $dest_zone $i;
              break;
            }
          } 
    Now edit the Shipping Module for Zones and set the final zone as: 00

    Does this solve the problem to include "everyone else" not otherwise defined?
    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: v1.5.5]
    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!

  3. #3
    Join Date
    Sep 2006
    Posts
    80
    Plugin Contributions
    0

    Default Re: Shipping Zones - Zone 3 how to set to all other?

    thanks,
    great plan - i try it ...

    Ralph

    Quote Originally Posted by Ajeh
    Got a plan ...

    Edit the file:
    /includes/modules/shipping/zones.php

    Find the code:
    PHP Code:
          for ($i=1$i<=$this->num_zones$i++) {
            
    $countries_table constant('MODULE_SHIPPING_ZONES_COUNTRIES_' $i);
            
    $country_zones split("[,]"$countries_table);
            if (
    in_array($dest_country$country_zones)) {
              
    $dest_zone $i;
              break;
            }
          } 
    Change the code to read:
    PHP Code:
          for ($i=1$i<=$this->num_zones$i++) {
            
    $countries_table constant('MODULE_SHIPPING_ZONES_COUNTRIES_' $i);
            
    $country_zones split("[,]"$countries_table);
            if (
    in_array($dest_country$country_zones)) {
              
    $dest_zone $i;
              break;
            }
            if (
    in_array('00'$country_zones)) {
              
    $dest_zone $i;
              break;
            }
          } 
    Now edit the Shipping Module for Zones and set the final zone as: 00

    Does this solve the problem to include "everyone else" not otherwise defined?

  4. #4
    Join Date
    Oct 2006
    Posts
    11
    Plugin Contributions
    0

    Default Re: Shipping Zones - Zone 3 how to set to all other?

    Thanks Ajeh - The 00 zone mod is great, worked a charm.

    Is there any plan to combine this with a 'blacklist' style exclusion system? eg if I want to ship to anyone except people in countries x, y, z
    I suspect for many stores managing by exclusion might be preferable to managing by inclusion.

 

 

Similar Threads

  1. v151 How can I set up multiple U.S. Shipping Zones by Weight
    By runawayd in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 4 Sep 2013, 11:25 PM
  2. zone designation - how do I set up shipping zones?
    By cjburney in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 6 Nov 2010, 08:36 AM
  3. how do I define zones? to set up free shipping in-country?
    By louisapple in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 13 May 2009, 02:31 PM
  4. How do I set up 4 flat shipping zones... pls help
    By epicautoteks in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 14 Feb 2009, 07:22 AM
  5. Free shipping for more than one zone (but not all zones)
    By yonghs in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 4 Aug 2008, 05:56 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR