TemperStack
Intermediate8 min readUpdated Mar 18, 2026

How to set up dynamic pricing rules on Shopify

Quick Answer

Dynamic pricing rules on Shopify are set up through automatic discounts that adjust prices based on specific conditions like quantity, customer segments, or collections. You can create these rules in the Discounts section of your admin panel using conditional logic.

Prerequisites

  1. Shopify store with products added
  2. Admin access to Shopify dashboard
  3. Basic understanding of discount strategies
  4. Products organized with proper collections or tags
1

Access the Discounts Section

Log into your Shopify admin dashboard and navigate to Discounts from the main menu. Click on Create discount and select Automatic discount to begin setting up your dynamic pricing rules.
Tip
Automatic discounts apply without customers needing discount codes, making them perfect for dynamic pricing strategies.
2

Choose Discount Type and Configure Basic Settings

Select Buy X Get Y or Amount off products depending on your pricing strategy. Enter a descriptive name for your discount rule in the Discount title field. Set the discount value as either a percentage or fixed amount in the Discount value section.
Tip
Use clear, descriptive names for your discount rules to easily manage multiple dynamic pricing strategies.
3

Set Customer Eligibility Conditions

In the Customer eligibility section, choose your target audience. Select Specific customer segments to create pricing rules for different customer groups, or choose Specific customers to target individuals. You can also select All customers for universal dynamic pricing rules.
Tip
Create customer segments based on purchase history, location, or tags to enable sophisticated dynamic pricing strategies.
4

Configure Product and Quantity Conditions

Under Customer buys, set the minimum quantity requirements and select which products or collections the rule applies to. Choose Specific products, Specific collections, or All products. Set minimum and maximum quantity thresholds to create volume-based dynamic pricing.
5

Set Usage Limits and Time Restrictions

In the Usage limits section, configure how many times the discount can be used per customer by checking Limit number of times this discount can be used in total and Limit to one use per customer. Set start and end dates in the Active dates section to control when your dynamic pricing rules are active.
Tip
Use time-based restrictions to create seasonal dynamic pricing or limited-time promotional pricing strategies.
6

Add Advanced Conditions with Scripts

For more complex dynamic pricing, go to Settings > Checkout and scroll to Scripts. Click Manage scripts and create custom pricing scripts using Shopify's Script Editor. Use Ruby code to implement conditions like if cart.total_price > 10000 for advanced dynamic pricing logic.
Tip
Script Editor requires Shopify Plus subscription and Ruby programming knowledge for complex dynamic pricing scenarios.
7

Test and Activate Your Dynamic Pricing Rules

Before going live, use Shopify's preview feature to test your discount rules. Add test products to your cart and verify the dynamic pricing works as expected. Once confirmed, click Save discount to activate your dynamic pricing rule. Monitor the Discounts dashboard to track performance and usage.
Tip
Create a test order using different customer accounts or quantities to ensure your dynamic pricing rules work correctly across all scenarios.
8

Monitor and Optimize Performance

Navigate to Analytics > Reports to track the performance of your dynamic pricing rules. Review metrics like conversion rates, average order value, and total discount usage. Use the Discounts section to edit, pause, or duplicate successful pricing rules for optimization.
Tip
Regularly analyze discount performance data to refine your dynamic pricing strategy and maximize profitability.

Troubleshooting

Dynamic pricing rule not applying at checkout
Check that your discount conditions are correctly configured and the customer meets all eligibility requirements. Verify that the discount is active and hasn't reached its usage limit in the Discounts section.
Multiple discount rules conflicting with each other
Shopify applies only one automatic discount at a time. Review your discount priority by checking the order in the Discounts list and adjust conditions to prevent conflicts or use discount combinations strategically.
Script-based dynamic pricing not working
Ensure you have Shopify Plus and the Script Editor app installed. Check your Ruby syntax for errors and verify that scripts are published and active in the Script Editor section.
Customer segments not triggering dynamic pricing
Verify that customers are properly tagged or assigned to segments in Customers section. Check that segment criteria match your discount conditions and customers meet the requirements during their shopping session.

Related Guides

More Shopify Tutorials

Other Tool Tutorials

Ready to get started with Shopify?

Put this tutorial into practice. Visit Shopify and follow the steps above.

Visit Shopify