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.
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.
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!
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.
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!
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
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.
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:
to read:Code:$countries = "select countries_id, countries_name from " . TABLE_COUNTRIES . " order by countries_name";
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!
Code worked great, thanks
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!
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
Bookmarks