Tariffly › Blog

Shopify app to mark up products by country of origin for tariffs

Derek Markley, ForgeWorks · · 4 min read

Tariffly is a Shopify app that marks up products by country of origin. On the Pro plan, a rule can target every product whose inventory item lists a country you choose, raise those prices by a percentage or a flat amount, and revert them to the exact original later. It reads the country of origin field that already exists on Shopify inventory items, so there is nothing new to tag.

Country targeting is the most common reason people install Tariffly. This is how it works end to end, and the one piece of setup that trips stores up.

Where the country comes from

Every variant in Shopify has an inventory item, and every inventory item has a "Country/Region of origin" field. It sits in the shipping section of the product page in your admin, next to the HS code. It was put there for customs forms, which means a lot of stores have it filled in for the products they import and blank for the rest.

Tariffly reads that field. When you create a rule that applies to products by country of origin and list, say, CN and VN, the rule covers every variant whose inventory item has China or Vietnam as its origin. Variants with a blank origin do not match. That is the whole mechanism, and it is why it works without tagging anything.

The setup step that matters

Before you apply a country rule, check that the origin field is actually filled in on the products you expect it to hit. The quickest way is to export your products from the admin and look at the origin column, or spot check a few in the product editor. If your imports from one country are blank, fill them in first. Tariffly cannot guess where a product came from.

Countries go into the rule as two-letter codes: CN for China, VN for Vietnam, MX for Mexico, and so on. You can list as many as you want on one rule.

Creating and applying the rule

Install Tariffly from the Shopify App Store at apps.shopify.com/tariffly. Country targeting is a Pro feature, $9.99 a month through Shopify billing, so you will switch to Pro before saving a country rule. The free plan still gives you one rule across the whole catalog if that is all you need.

Add a rule. Give it a name, the label shoppers will see, pick percentage or flat, enter the amount, choose "Products by country of origin" and enter the codes. Save. Nothing changes yet.

Click Apply. Tariffly records the current price of each matching variant, then raises the price. It runs in the background and the rules page shows the count as it goes.

Running more than one country rule

Different countries carry different tariff rates, so you will probably want more than one rule: 25 percent for one country, 10 percent for another. Pro allows unlimited rules. Each rule keeps its own record of originals, and you can revert one without touching the other.

If a variant could match two rules, the rule priority decides which one applies. Keep it simple where you can: one rule per country or group of countries at the same rate.

Telling the shopper

Tariffly writes a short note to each marked-up product, such as "Price includes 25% import tariff," using the label you set on the rule. Add the Tariff notice block to your product template in the theme editor and the note shows on exactly the products a rule touched. The rest of the catalog shows nothing. Shoppers have read the same tariff headlines you have, and a plain note usually lands better than a silent increase.

Reverting when the rate changes

When the tariff on a country drops or ends, click Revert on that rule. Every variant it marked up goes back to its recorded original, to the cent. Any price you changed by hand in the meantime is left alone and counted in the status. When new products from that country arrive, click Re-apply and only the new ones get marked up.

Revert all rules before uninstalling the app. Once it is removed it cannot restore prices.

Questions go to info@getforgeworks.com.

FAQ

How does Tariffly know a product's country of origin?

It reads the "Country/Region of origin" field on each variant's inventory item in Shopify, the same field used for customs. Products with that field blank will not match a country rule.

Can I set different markups for different countries?

Yes. On the Pro plan you can run unlimited rules, so one rule can add 25 percent to products from one country and another can add 10 percent to products from another, each with its own revert.

Is country of origin targeting free?

No. Targeting by country, product or collection is on the Pro plan at $9.99 a month. The free plan applies one rule to all products.

What happens when the tariff on a country ends?

Click Revert on that rule and the affected prices return to their recorded originals. Prices you changed by hand in the meantime are not touched.

More from the blog

What is the best Shopify app to add import tariffs to my product prices?How do I raise prices on Shopify products affected by tariffs and undo it later?Should I add a tariff surcharge at checkout or raise product prices on my Shopify store?

Stop losing margin to tariffs

Install Tariffly on your Shopify store and apply your first tariff rule in minutes. Free for one rule.

Add to Shopify →