Add amount in metafield to product price at checkout

New Member
1 0 0

We currently have a store in which every product has an additionnal fee in a metafield value. That fee needs to be applied to the product at checkout only for customers in a certain province. We haven't found any app in the store that can do that and we also cannot find how we can do that using a private app.

The closest thing we found was the script editor, unfortunately the store doesn't use Shopify Plus and it seems the scripts can't access metafields.

Is it possible to have private apps or scripts in the theme modify prices at checkout?

0 Likes
Highlighted
Shopify Staff
Shopify Staff
618 46 87

Hi @SynergyEComm,

 

There's no way to alter product price on a per line item basis without using discounts. The script editor is definitely the best option for Plus shops. Aside from Plus, you could accomplish this by adding a new line item equal to the amount of the fee. You could do this on the frontend with our AJAX API, thought you'd need to do so before continuing to the checkout page.

0 Likes