I am setting up a new store, and it will primarily be B2B but there will be some B2C here and there. All of our products have minimum-advertised-pricing restrictions, so we would like to have the products priced at MAP for non-B2B customers, but have our B2B product catalogs calculate prices based on the cost of the product (cost + 20% for example), not the MAP. As far as I can tell, the cost field in a product is just for reporting though, and the catalogs only let you increase or decrease based on the product’s price. Is there a way to do this, preferably without paying for an app?
Shopify does not support dynamic pricing based on the cost field, as it’s primarily used for reporting. However, you can achieve your goal without an app by using Shopify Scripts (Shopify Plus) or a custom Liquid solution combined with customer tags if you’re not on Plus.
- Shopify Plus User: If you are Shopify plus user then you can use Shopify Scripts to achieve this.
- Custom Liquid (For Non-Plus Users): If you’re not on Shopify Plus, you can create a separate product template, you can use Customer tags Or Manually adjust the pricing.
Here are the steps you can follow.
- Modify the product template to check if the customer is B2B (tagged).
- Show the MAP price for guest/non-B2B customers.
- Show the cost-based price for B2B customers.
Would you like me to do this stuff for you. You can reach me out.
Thanks
I know I can show the “cost + X” price, but will it still apply once the customer is in the shopping cart and checking out? All I can see in the shopify dev docs is a method for creating more discounts off the standard price
If you’re looking to calculate product prices based on cost + profit, you can take a look at Cost Based Pricing.
https://apps.shopify.com/cost-based-pricing
The app lets you set pricing rules based on your product cost, so prices are calculated automatically with your desired margin. No manual updates and no custom code required.
You can apply different rules by product, collection, or customer type, and everything is correctly reflected in the cart and checkout. It’s designed to keep pricing simple while protecting your margins.
Hope this helps,