I really appreciate BOTH your feedback on this. :)
I just typecast that line by putting (int) in front of the $order->delivery['country']['id'] variable.
Cindy, you mentioned that "Please Select" is an alias of the "All Zones." I do have that set up, even though the database has NULL in the zone_id.
Here, let me see if I can illustrate my settings to help pinpoint this issue.
Under Modules -> Shipping -> Free Shipping options, I have my "Shipping Zone" set to "Free Shipping Areas."
Under Zones Definitions, I created a "Free Shipping Areas" zone. That zone only has two entries:
- Puerto Rico (All Zones)
- United States (All Zone)
Screenshot:
https://i.postimg.cc/QtCfSWnz/screenshot-980.png
If I click to EDIT the Puerto Rico entry, I can see that "All Zones" is an option for the zone:
https://i.postimg.cc/j5y4MQ4Z/screenshot-981.png
If I click to EDIT the United States entry, it only says "Please Select":
https://i.postimg.cc/vBXc84YG/screenshot-982.png
This "Free Shipping Areas" zone has an ID of 2.
When I go to the database and run a query (SELECT * FROM `zen_zones_to_geo_zones` WHERE `geo_zone_id` = 2; ), this is what I see:
https://i.postimg.cc/RVwqqpVP/screenshot-983.png
As you can see, the zone_id for the United States is NULL. If that is causing the issue, should I just change it to "0" like the Puerto Rico entry?
Bookmarks