Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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.
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.
@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
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025