Page 1 of 1

All Others in Shipping Modues

Posted: Tue Apr 16, 2024 2:34 pm
by Xpajun
In the osc shipping modules and at least up to Phoenix 1.0.7.* it was common to put 'All Others' in the last countries zone rather than having to enter all the country codes not included in the previous zones.
So I did this in the 1.0.8.20 and it didn't work... has this short cut now been killed? just wondering

Not worried as I have now got a list of the remaining world countries not included in the previous 37 zones and a quick copy and paste solved it :D

Re: All Others in Shipping Modues

Posted: Wed Apr 17, 2024 7:33 am
by 14Steve14
When I was setting up my international postage I tried the same thing and like you in the end just added in a lot of the remaining countries that we had previously sent parcels to, and left out all the other ones.

Would be nice to include them all if there was an easy way.

Re: All Others in Shipping Modues

Posted: Wed Apr 17, 2024 8:19 am
by burt
I've not heard of this Shortcut before today.
It's never been a thing in core code, maybe it was in one or more shipping addons ?

It would just be a final loop in the code to say something like;

if X country has no shipping cost, place it into the "uncosted" band.
Then have that "uncosted" band have a price.

Re: All Others in Shipping Modues

Posted: Wed Apr 17, 2024 8:33 am
by ecartz
burt wrote: Wed Apr 17, 2024 8:19 am It's never been a thing in core code,
Maybe it was a bug: https://github.com/CE-PhoenixCart/Phoen ... 78e0351f6b

Re: All Others in Shipping Modues

Posted: Thu Apr 18, 2024 5:35 pm
by Xpajun
burt wrote: Wed Apr 17, 2024 8:19 am I've not heard of this Shortcut before today.
It's never been a thing in core code, maybe it was in one or more shipping addons ?

It would just be a final loop in the code to say something like;

if X country has no shipping cost, place it into the "uncosted" band.
Then have that "uncosted" band have a price.
You are probably right But thomasamoulton had this in his shipping module from 2003 from osc and I've used it in Phoenix - doesn't work in 1.0.8.20 though

Code: Select all

       if ($i == 38) {//Zone 12 GobalpriorityAllOthers
         $default_countries = 'All Others'; // this must be the lastest zone
         $shipping_table = 1:xxxx
       }

Probably better to have the remaining countries codes though