Combatting New US Tariffs

Open to all! Ask other shopowners for help.
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Combatting New US Tariffs

Post by burt »

I'm pretty certain the one who sent me this won't mind me posting it here. I really like being let loose to do something based on what's needed;
I do need help with a project to combat Trump's tariff chaos, an Order Total module. Please refer to the attached mock-up.

Shop side:
1) A checkbox at the beginning of the line. Once the checkbox is ticked, the amount of customs duty is calculated and appears (from invisible to visible? From 0 to calculated amount?)
2) The helper text (what is this?) can link to a tooltip or pop-up modal to, uh, explain what it is; whichever is most straightforward to implement.

Admin side:
1) A method to set the tariff rate for each country. Currently, I will only apply this Order Total when the shipping address is in the US, but I might apply the module to other countries later. Once a country has a tariff rate assigned, this Order Total module should appear on the shop side during checkout. I can generate a string of combinations of country ISO code + rate percentage like "US:20,GB:8,AU:10" (meaning United States 20%, United Kingdom 8%, Australia 10%) easily from another source, if parsing a string is a simple way to go.
With this Mockup

original_mockup.png
You do not have the required permissions to view the files attached to this post.
I am not here to build for you.
I am here to build with you. Let's help each other.


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Combatting New US Tariffs

Post by burt »

And here is what I came up with, it took a bit of wibbly-wobbly to deal with Tickboxes, but it seems to work pretty good;

If NOT ticked:
tar1.png
And if Ticked:
tar2.png
The "what is this" pops up a tooltip, changeable in the language file..

Currently out for testing.
You do not have the required permissions to view the files attached to this post.
I am not here to build for you.
I am here to build with you. Let's help each other.
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Combatting New US Tariffs

Post by burt »

And in the Admin Side:

tar-ad.png
You do not have the required permissions to view the files attached to this post.
I am not here to build for you.
I am here to build with you. Let's help each other.
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Combatting New US Tariffs

Post by burt »

Best of all, everything is done with NO core code changes.
One Order Total module and one extra helper file.

That is Phoenix, in a nutshell.
The ability to do almost anything without touching any core code.
I am not here to build for you.
I am here to build with you. Let's help each other.
artfulweb
Contributor
Posts: 184
Joined: Thu Oct 29, 2020 12:34 pm
Phoenix Version: v1.1.0.6
Has thanked: 29 times
Been thanked: 14 times

Re: Combatting New US Tariffs

Post by artfulweb »

Great job! Unfortunately here in France all shippers including our post office have suspended shipping to the US saying that US Customs has not provided a means to pay customs before shipping so we have now lost ou US customers!!! Bummer...
Moxamint
Member
Posts: 93
Joined: Fri Nov 06, 2020 10:36 am
Phoenix Version:
Has thanked: 33 times
Been thanked: 3 times

Re: Combatting New US Tariffs

Post by Moxamint »

artfulweb wrote: Sun Sep 14, 2025 7:21 am Great job! Unfortunately here in France all shippers including our post office have suspended shipping to the US saying that US Customs has not provided a means to pay customs before shipping so we have now lost ou US customers!!! Bummer...
Not even FedEx or DHL? As far as I know, the shipper can choose to pay customs duty upfront when arranging shipments with these two carriers.

Cheers, Eddy
artfulweb
Contributor
Posts: 184
Joined: Thu Oct 29, 2020 12:34 pm
Phoenix Version: v1.1.0.6
Has thanked: 29 times
Been thanked: 14 times

Re: Combatting New US Tariffs

Post by artfulweb »

No, they all suspended it here, explaining that nothing has been put in place on the US end to make the arrangements for payment and customs will refuse any package sent so it is a real mess.
Moxamint
Member
Posts: 93
Joined: Fri Nov 06, 2020 10:36 am
Phoenix Version:
Has thanked: 33 times
Been thanked: 3 times

Re: Combatting New US Tariffs

Post by Moxamint »

artfulweb wrote: Wed Sep 17, 2025 7:59 am No, they all suspended it here, explaining that nothing has been put in place on the US end to make the arrangements for payment and customs will refuse any package sent so it is a real mess.
So in France, it simply doesn't work even when sellers are willing to subsidize and swallow the customs duties? That really sucks.
Dan Cole
Senior Contributor
Posts: 498
Joined: Fri Oct 25, 2019 2:14 pm
Phoenix Version: 1.0.8.21
Has thanked: 67 times
Been thanked: 61 times

Re: Combatting New US Tariffs

Post by Dan Cole »

artfulweb wrote: Wed Sep 17, 2025 7:59 am No, they all suspended it here, explaining that nothing has been put in place on the US end to make the arrangements for payment and customs will refuse any package sent so it is a real mess.
Seems a little strange....couriers like Fedex, UPS etc have always had arrangements in place so they could clear shipments through customs and have the importer pay any duties, clearance charges etc. Surely that must still exist?

Dan
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Combatting New US Tariffs

Post by burt »

It ended up more or less as per the images above. Key differences in finalised version;

1. The "tariff amount" ($0.60) in the image above is in a muted text colour unless/until the checkbox is checked
1a. The "tariff percent" is now also shown in the text.
2. If the order is a "tariff paid" order, we set the order status to "Duty Paid" status
3. We added "very in your face" messaging on admin/orders.php to help admin users see that this is an order that Tariff has been paid on;
3a. a new column on the default admin/orders.php list
3b. a big "red" alert on the individual admin/order page

I'm not certain if this will be interesting to other shopowners, please let me know.
Even if not for use as is, it could be converted rather easily to something else.
EG "gift wrap this order" or any other `thing` which the customer can choose or not choose.
I am not here to build for you.
I am here to build with you. Let's help each other.


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