Minimum billing fee at cart or checkout based on total for vendor or tag

Is there a way to setup a fee that will be charged, if an order does not meet a certain minimum based on vendor or tag (tag setup for all products from a vendor)? Example, If it is a $50 minimum order for a vendor and the order is at $40, I would like to charge a fee for the difference at cart or checkout. Is this possible with code or an app (preferably free app)? I have 3 vendors with minimums, 2 that are $50 minimum, 1 that is $100 minimum.

Hi @HTX-Fluid-Power

Although Shopify doesn’t support this, you can achieve this using a third-party app or through custom coding. There are also apps like “MinCart – Order Limits” or “Order Limit” in the Shopify App Store that allow you to set minimum cart amounts by product tag or vendor, and some offer free plans with basic functionality. Check their settings to see if they include an option for charging the difference (e.g., to charge $10 if the order is $40 instead of $50).

If you are seeking a free solution, you can ask (or hire) Shopify Expert to add custom code to your theme’s cart or checkout logic, using liquid and javascript to calculate the shortfall and display a fee, though this would have to be technically applied. For your use case of three suppliers (two at $50 and one at $100), tagging products by supplier and using conditional logic will work just fine for you