Results 1 to 5 of 5
  1. #1

    Default Shipping - Table clone for all the rest

    I have cloned the table rate module so I could have different shipping rates for the US, Puerto Rico and Canada. Now I need one more for all the other zones, but I am not sure how to set up the zone definitions to make that happen.

    I could do it by cloning another table rate module for each country individually, but that is a lot of work. Is there a simpler method to capture every zone except the US, Canada, and Puerto Rico?

    A link to the site is in my signature. Thanks!

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Shipping - Table clone for all the rest

    I believe that if you define this zone country as "00", it will include all areas not already defined....

    Can advanced search for Ajeh as poster

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

    Default Re: Shipping - Table clone for all the rest

    This will build a Zone Definition for all countries except the USA ... you can use the SQL in phpMyAdmin for this ...
    Code:
    INSERT INTO geo_zones (geo_zone_id, geo_zone_name, geo_zone_description, last_modified, date_added)
    VALUES (40, 'International', 'All Countries Except United States', NULL, CURDATE());
    
    INSERT INTO zones_to_geo_zones (zone_country_id, zone_id, geo_zone_id, date_added)
    SELECT countries_id , 0, 40, CURDATE()
    FROM countries
    WHERE countries_iso_code_3 NOT IN ('USA');
    Then, you can remove/add the minor adjustments as needed ...

    NOTE: on Zone Definitions there are some Countries/States that have 2 definitions for use with USPS and UPS such as Puerto Rico where there is Puerto Rico the Country and Puerto Rico a State of the United States ...
    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!

  4. #4

    Default Re: Shipping - Table clone for all the rest

    Thanks Ajeh and Kobra for the quick replies.

    So I would run the code you gave me as a SQL query?

    Also, to remove Canada and Puerto Rico, would the last line be

    WHERE countries_iso_code_3 NOT IN ('USA', 'CAN', 'PRI');

    Sorry for being dense, I guess I better hit the books on SQL queries.

    Thanks again, this forum has really been a big help. You zen cart gurus are awesome!
    Last edited by dkervin; 30 Nov 2010 at 06:26 PM.

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

    Default Re: Shipping - Table clone for all the rest

    You can alter the SQL statement, which you can run in phpMyAdmin and select your database and in the SQL link you can run that, or you can customize the new Zone Definition, after it is made, in your Zen Cart Admin in the Zone Definition Details ...
    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!

 

 

Similar Threads

  1. v151 Free shipping for Australia and rest of the World charge Shipping w/AU post
    By oavs in forum Built-in Shipping and Payment Modules
    Replies: 8
    Last Post: 27 Jan 2014, 02:38 PM
  2. Shipping - Table Rate Clone
    By Nick1973 in forum General Questions
    Replies: 5
    Last Post: 2 Feb 2011, 04:23 PM
  3. "Per item" for some products, table rate for the rest?
    By kazie in forum Built-in Shipping and Payment Modules
    Replies: 15
    Last Post: 11 Jun 2009, 05:15 PM
  4. How to Set Table Rate Shipping for US Lower 48 States - USPS Shipping for All Others
    By Boggled in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 15 Feb 2007, 08:29 PM
  5. 1 table rate for the UK, 1 for the rest of the world
    By monkeytastic in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 9 Feb 2007, 04:40 PM

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