Good day Everyone, first time here and I’m really new to shopify and require a help.
In shopify is it possible to calculate the final price of a product based on a formula of product price using a n app.
for an example if the product price is given as 5 dollars, we want to add 10% margin to it and calculate the final price of the product. else if the product price is 10 dollars we want to add a 20% margin to the price and show the final price to the user and so on.
If you know an app that can do this please let me know. I’d really appreciate it.
hi @wkhasintha
Welcome to the Shopify community!
Yes, what you’re trying to do is definitely possible on Shopify using apps or custom pricing logic.
For your example—where the final price is calculated dynamically based on the product’s original price and margin rules (e.g., 10% if $5, 20% if $10, etc.)—you can consider the following options:
1. Custom Pricing Apps
You might want to explore apps like:
Custom Price Calculator by ApiPPA
Dynamic Product Options by ITORIS
Advanced Product Options by Mageworx
These allow you to set formulas or custom rules for price calculations.
2. Shopify Scripts or Shopify Functions (for Shopify Plus)
If you’re on Shopify Plus, you can use Shopify Scripts to implement conditional pricing logic like the one you described.
3. Custom App or Shopify App Extension
If your logic is very specific and changes frequently, you might consider building a small custom app or Shopify function that updates product prices based on your rules.
1 Like
hi @Dotsquares
Thank you for the response. I tried the apps you 've mentioned and those didn’t fit in with our requirement.
What we want is this. the workflow as below
-
Our team member creates a product in the shopify backend
-
He enters the default product price (that is the price without the product) and save the product.
-
The App should calculate the final price based on the profit criteria and update the final price.
the price calculation should happen when our team member finished creating the product.
Hope my requirement is clear
Best Regards
Hi @msunvi here it is
£0-£5 100%
£5.01-£20 60%
£20.01-£50 40%
£50.01-£100 42%
£100.01-£300 30%
£300.01-£700 22%
£700.01-£1200 18%
Hi @DLight001 Thank you for the response. Indeed seems like we need to build a custom app for this.
Hi @wkhasintha ,
What do you mean by “default product price”? You are you determining the final price based on product cost to you plus a predefined markup - correct?
Hi,
I guess the author managed to build that custom calculator by now. The task looks perfect for such calculator apps. I just wanted to add an option and say that our Elfsight Calculator for Shopify can also do that: with an AI feature users don’t even need formulae for some cases, it can be enough to describe the scenario in words, and the app will generate the calculator you need.
So, I welcome everyone who is in a similar need to check out our app.
Best,
Elfsight Team
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,