Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Automatically Add a Custom Fee as a % of Order Total to Cart for All Products (except Gift Cards)

Automatically Add a Custom Fee as a % of Order Total to Cart for All Products (except Gift Cards)

pdg
Visitor
1 0 0

Our local township is enacting a "bag fee" to discourage people from using plastic bags.

I need to automatically add a $0.30 bag fee applied to every order except for gift cards and on the website only, not POS (we can manually add it there). We estimate 1 bag per $100 Order Total, so each additional $100 in the order would need to incrementally add $0.30 to the fee charge.

 

For example, a client has a $250 order on our website, the code should automatically add $0.90 to the order.  0-100 order total = $0.30 bag fee, then 100.01-200 = $0.60, order total of 200.01-300 = $0.90 and so on.

 

I have seen some posts on "custom shipping fees", but Clients order on our website, then come to our store to pick it up. We don't ship anything, as such, shipping is disabled. Could adding some kind of "handling fee" be a solution despite not shipping anything?

 

Otherwise, there should be some way to add some liquid code so the fee can be automatically added as a Product, or an additional line item in the cart...?

 

Thanks in advance for any help.

Replies 2 (2)

Mussty
Excursionist
39 3 16

If you can't find any code to do this, I came across a few apps that allowed you to add percentage based fees while I was searching for similar solutions:

 

https://apps.shopify.com/product-fees

 

https://apps.shopify.com/pfand-deposit-fee

 

If these apps add a product as a fee to the cart, don't forget to use seo.hidden feature in shopify to hide from internal search and external search engines indexing it. 

sasquatchstudio
Shopify Partner
70 0 2

@pdg  Check out the Canteen app. It will do the % fees and also has a POS integration to automatically do the fee work their (avoiding manual work)

 

https://apps.shopify.com/canteen