Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Ship to only two countries

Ship to only two countries

Views: 7,071

Results 21 to 24 of 24
15 Jun 2012, 2:33 PM
#21
batracy avatar

batracy

New Zenner

Join Date:
Jun 2012
Posts:
57
Plugin Contributions:
1

Ship to only two countries

Whoops, I forgot one very important change to the file admin/countries.php

change the following line (it's about half way down in the file)

<?php
  $countries_query_raw = "select countries_id, countries_name, countries_iso_code_2, countries_iso_code_3, address_format_id from " . TABLE_COUNTRIES . " order by countries_name";

To this:

<?php
  $countries_query_raw = "select countries_id, countries_name, countries_iso_code_2, countries_iso_code_3, address_format_id, countries_active from " . TABLE_COUNTRIES . " order by countries_name";

Also note that this change does not account for customers who already have entered an address into the store front in their account and you turn off the country afterwards. I'm working on this change and will update here once I have it working.

23 Jun 2012, 5:21 PM
#22
rssell avatar

rssell

New Zenner

Join Date:
May 2012
Posts:
6
Plugin Contributions:
0

Re: Ship to only two countries

Not to be rude, batracy, but the change to includes/functions/function_lookup.php is simple and works just fine.

24 Jun 2012, 11:03 PM
#24
batracy avatar

batracy

New Zenner

Join Date:
Jun 2012
Posts:
57
Plugin Contributions:
1

Re: Ship to only two countries

rssell:

Not to be rude, batracy, but the change to includes/functions/function_lookup.php is simple and works just fine.

Never said it didn't work just fine, just wanted what I thought would be a better way to deal with the issue rather than having to edit the file anytime a change was needed.