Or go to our Shopify Theme Detector directly
Can you Set Prices Differently for Various Customers on Shopify?
Last modified: June 4, 2023
Not all customers are created equal. Some customers are more valuable to your business than others and you might want to offer those loyal to your brand special pricing. This can be an interesting way for you to build more revenue from your loyal customers and grow your business.
There aren’t many ways that you can set prices different for different customers. You can use some apps like this one here that can offer personalised prices. But this can only do certain amounts and is good if you want to offer one price for one group and another for another group. And there are some bulk edit apps that you can use too.
However, if you want to have a more complex system, then you can use this option where you add code, using the free Script Editor app.
How to Set Prices Differently for Various Customers on Shopify Steps
Here are the instructions on how you can achieve these various prices on the website.
Step 1 – Log In
The first step is to log into your store using your credentials.
Step 2 – Add App
Ensure that you’ve added the free Script Editor app to your store. If not, go to the app store, and then you can install the app on your Shopify account.
Step 3 – Add Customer Tags
Now you need to add tags to the customers where you want to offer special prices. For instance, you can add a tag that reads ‘Customer5’ or ‘Cus10’ that refers to a discounted amount or percentage on your products.
Add these throughout certain customers.
Step 4 – Add Code
Now you can add some code into the Math Filter that is perfect for setting a discounted amount for specific customers on your store
{% if customer.tags contains 'Customer5' %} {{ variant.price - 5.00 | money }} {% else %} {{ settings.free_price_text }} {% endif %}
This tells the website that if your customer has the tag ‘Customer5’ then they get $5 off the product price. Remember to save this when complete.
Or you can use the Script Editor app and use this code to add multiple discount points for customers depending on what tag they have.
TAG = "CUS" #customer tag DISCOUNTS_BY_TAG = { #array of discounts "CUS1" => 1, "CUS2" => 2, "CUS3" => 3, "CUS4" => 4, "CUS5" => 5, "CUS6" => 6, } MESSAGE = "Customer discount" #this is the text that appears next to discount credit customer = Input.cart.customer if customer #checks to see if user is logged in if customer.tags.include?(TAG) #checks to see if user has appropriate discount tag DISCOUNTS_BY_TAG.each_pair do |tag, discount| #cycle through the above array of tags if customer.tags.include?(tag) #pairs the customer's discount level from the above array of tags discount = #{discount} Input.cart.line_items.each do |line_item| line_item.change_line_price( line_item.line_price * (Decimal.new(1) - discount / 100), message: MESSAGE, ) end end end end end Output.cart = Input.cart
This will fetch the right amount to discount the product by related to what level the customer should have. Note that if you delete the code app from your store, this code will no longer work.
Final Word: Can you Set Prices Differently for Various Customers on Shopify?
You can set different prices for various customers, though this is done as a code. Using a free app this can be done easily. You can use the code above to help you offer this on your website and build more loyalty on your store.
This *free* Script Editor app is only available to Shopify Plus customers which costs $2000 per month – insane