How to make discount to all products?

Topic summary

A user wants to apply a 20% discount to all products (200+) and display it on the site, not just at checkout.

Suggested solutions include:

  • Automatic discount at checkout: Create an automatic discount in Shopify Admin (Discounts > Create Discount > Automatic Discount) set to 20% off all products. However, this only shows at checkout, not on product pages.

  • Code modification for on-site display: Edit theme files (product.liquid, main-product.liquid, product-price.liquid, or price.liquid) to calculate and display discounted prices using Liquid code. The user reports being unable to locate these files in their theme.

  • Compare-at pricing (recommended): Bulk edit products via CSV or Shopify Admin to set the original price as “Compare-at price” and reduce the actual “Price” by 20%. This displays a strikethrough original price on product pages, making the discount visible site-wide.

  • Third-party apps: Tools like “BD Bulk Discount Price Editor” can automate dynamic pricing changes.

Open question: Whether manually adjusting product prices prevents the discount from appearing in cart/checkout summaries.

Summarized with AI on October 30. AI used: claude-sonnet-4-5-20250929.

Hi ,

i want to make discount about 20% for all my site products, is there is way to make it ,

i want it to show at the site not at checkout

@ai41

Try this,

First, go to Shopify Admin > Discounts > Create Discount > Automatic Discount

Set 20% off for All Products then save.

Second, display discount on product pages

Head into Online Store > themes > edit code then find product.liquid or main-product.liquid

Replace price code {{ product.price | money }} by

liquid

{% assign discounted_price = product.price | times: 0.8 %}
{{ product.price | money }}
{{ discounted_price | money }}

Finally, save and test.

thank you for your response, but i couldn’t find this : {{ product.price | money }} . this is my site url : saintalen.com

Mean to say,

Online store > themes > Actions > edit code,

Add code to product-price.liquid or price.liquid :

{% if product.price %}
  {% assign discount_percentage = 20 %}
  {% assign discounted_price = product.price | times: 100 | minus: discount_percentage | divided_by: 100 %}
  {{ product.price | money }}
  {{ discounted_price | money }}
{% endif %}

try

Hi @ai41

  • Go to Shopify Admin → Discounts → Create Discount
  • Choose Automatic Discount → Percentage
  • Set it to 20% off all products
  • Customers will see the discounted price only at checkout, not on product pages

Ah, and if you want the discount to apply dynamically (without manually updating prices), apps like “BD Bulk Discount Price Editor” or “Discounted Pricing” can help.

I found that you also use a compare-at Price (best for displaying on site)

  • Bulk edit your products (via CSV or in Shopify Admin)
  • Set the “Compare-at price” to the original price
  • Adjust the “Price” to reflect the 20% discount (e.g., $100 → $80)
  • This makes the discount visible on product pages with a strikethrough original price

Not able to find files like this: product-price.liquid or price.liquid

So i need to make this for each product? Because i have more than 200 products

You can bulk edit product prices and compare at prices in Shopify as if you’re working on a spreadsheet.

So should be a valid approach too.

Question, if you edit the product price to the final price. Doesn’t it mean that it doesn’t show up as a discount in the cart & checkout?

1 Like