Page 1 of 3 123 LastLast
Results 1 to 10 of 24
  1. #1
    Join Date
    Apr 2009
    Posts
    31
    Plugin Contributions
    0

    Default Ship to only two countries

    How do I indicate that I only ship to USA and Canada. When a customers selects "Estimate Shipping" it list all the countries. I want to show the shipping rates to only to USA and Canada.

    Thanks for your help.

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

    Default Re: Ship to only two countries

    Build a Zone Definition and define the Countries/States in the DETAILS of the Zone Definition and add it to your shipping modules ...
    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
    Apr 2009
    Posts
    31
    Plugin Contributions
    0

    Default Re: Ship to only two countries

    I have done exactly what you said (I think) and still having problems.
    The main issue is that when I go to the shopping chat and select a product and then see the "Estimate Shipping Cost" block appears. In the drop down "Country" field it show all the countries in the world. I need it to show only the Country I ship to, not all Countries that I do not ship to.

    Thanks for your help.

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

    Default Re: Ship to only two countries

    There are two ways to do it ... add to the Shipping estimator the text that you only ship to 2 countries so they know why if they choose a different country they get no quote ...

    Or, backup the database table:
    countries

    via phpMyAdmin, then delete all other countries ... this would allow you to later add back the other countries, should you need them in the future ...
    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!

  5. #5
    Join Date
    Apr 2009
    Posts
    31
    Plugin Contributions
    0

    Default Re: Ship to only two countries

    Thanks for your help. It seems odd that we would need to edit the data base or edit the php file to remove all of the Countries that are not shipped to. I suspect that this would be a very common issue with most zencart users.

    I have now decided to ship to only one county, USA. so how about just rem out the line that says Country and the drop down menu Country menu. I can add a note that says the I only ship to USA. What is the name of the file that I would need to edit?

    Again, Thanks for your help

  6. #6
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Ship to only two countries

    Quote Originally Posted by onejimb View Post
    Thanks for your help. It seems odd that we would need to edit the data base or edit the php file to remove all of the Countries that are not shipped to. I suspect that this would be a very common issue with most zencart users.
    It is indeed unfortunate and inconvenient. That's why for ZC v2 we're adding the ability to simply use a checkbox to indicate which countries should be "active" vs not.
    So, while that doesn't help you *today*, at least you know there'll be some reprieve for it in the future.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

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

    Default Re: Ship to only two countries

    While there is not override for this file, you could customize the code in:
    /includes/functions/functions_lookups.php

    and, for example to only allow United States and Canada, around line 45 change the code from:
    Code:
          $countries = "select countries_id, countries_name
                        from " . TABLE_COUNTRIES . "
                        order by countries_name";
    to read:
    Code:
          $countries = "select countries_id, countries_name
                        from " . TABLE_COUNTRIES . "
                        WHERE countries_iso_code_2 = 'US' or countries_iso_code_2 = 'CA'
                        order by countries_name";
    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!

  8. #8
    Join Date
    Apr 2009
    Posts
    31
    Plugin Contributions
    0

    Default Re: Ship to only two countries

    Code worked great, thanks

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

    Default Re: Ship to only two countries

    Thanks for the update that this was able to work for you ...
    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!

  10. #10

    Default Re: Ship to only two countries

    One question: How I can configure a Zone Definition only for some specific users??

    Because if I delete the database remain standard for all other users ...

    Regards

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v139h Deleting Countries I don't ship to
    By Barf in forum General Questions
    Replies: 3
    Last Post: 7 Dec 2012, 09:54 PM
  2. Q: Different Tax rates for different countries. But can only ship to US and Canada
    By SuppaDuppa in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 15 Jun 2010, 09:36 AM
  3. Replies: 0
    Last Post: 3 Apr 2009, 12:46 PM
  4. ship only to some countries only, based on category
    By triangleman42 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 8 Jun 2008, 06:10 AM
  5. Only Want To Ship to a Few Countries
    By vetofunk in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 7 Oct 2007, 04:46 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