How to show set % percentage sale price on all variants/collection?

Topic summary

A user running the Debut theme wants to display a 10% discount on all products in a specific collection without creating automatic discounts or manually editing each variant price. They want the collection page to show both the sale price (e.g., “From $71.10”) and original compare-at price (e.g., “$79.00”) with the discount percentage visible.

Proposed Solutions:

  • Liquid code approach: One responder provided custom code that dynamically calculates and displays discounted prices based on product tags, using variables like discount_value and discount_amt. However, this only changes the display.

  • Automation tools: Another contributor noted that Liquid code alone won’t reduce actual checkout prices—customers would still pay full price. They recommend using custom scripts or bulk price editing apps to apply real discounts if the goal is to reduce what customers actually pay by 10%.

Status: The discussion remains open with clarification needed on whether the user wants visual display changes only or actual price reductions at checkout.

Summarized with AI on November 10. AI used: claude-sonnet-4-5-20250929.

Hello,

Debut theme

I have a collection and I am offering 10% OFF all products and variants in this 1 collection but I do NOT want to create an automatic discount or change each variant price manually of -10%.

I would like the price on the collection page price of the product to say From $71.10 and the compare price is $79.00. So customers know the sale price and the original price in one line.

Thanks

1 Like

Hello @onyx_au

Welcome to Shopify Community.

Okay, so if you just want to show the discounted price dynamically calculated it can be done via hardcoded.

{% if product.tags contains 'ABC' %}
  {% assign discount_value = 10 %}
  {% assign discount_amt = 100 | minus: discount_value %}
  {% assign discounted_total = product.price | times: discount_amt | divided_by: 100 | round: 2 %}
{{ product.price | money }} <del>{{ discounted_total | money  }}</del>
{% endif %}

Let me know if you need help in the setup.

Thanks

Hi Onyx_au,

If you don’t want to create an automatic discount, and you don’t want to change each variant price manually, then you have to use some type of automation, like:

  • A custom script
  • An app (there are many bulk editing apps out there)

A solution that only involves changing Liquid code won’t be sufficient if you want the prices that customers pay to also be reduced by 10%.

Best,

Tobe