All Others in Shipping Modues

Open to all! Ask other shopowners for help.
Post Reply
Xpajun
Contributor
Posts: 187
Joined: Thu Mar 04, 2021 1:18 pm
Phoenix Version: v1.0.9.0
Has thanked: 3 times
Been thanked: 6 times

All Others in Shipping Modues

Post 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
Current Store is now running 1.0.9.0 - php 8.2.18
Now working on taking a short rest :D - php 8.2.18


Join The Code Co-op to get access to your library in the Code Co-op Forum
14Steve14
Senior Contributor
Posts: 923
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

Re: All Others in Shipping Modues

Post 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.
User avatar
burt
Core Team
Posts: 4557
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: All Others in Shipping Modues

Post 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.
I am not here to build for you.
I am here to build with you. Let's help each other.
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: All Others in Shipping Modues

Post 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
Xpajun
Contributor
Posts: 187
Joined: Thu Mar 04, 2021 1:18 pm
Phoenix Version: v1.0.9.0
Has thanked: 3 times
Been thanked: 6 times

Re: All Others in Shipping Modues

Post 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
Current Store is now running 1.0.9.0 - php 8.2.18
Now working on taking a short rest :D - php 8.2.18


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply