Display Sale Prices and Automatically Revert to Regular Prices After Sale Ends

Hello Shopify Community,

I’m working on a product table for my Shopify store where I display products and their variants along with an Add to Cart functionality. I want to implement a feature where some variants have a sale price shown, with the original price crossed out (e.g., 130120) and automatically revert back to the original price once the sale ends.

Here’s what I’m trying to achieve:

  1. Sale Price Display: I want to display a “sale” price for certain variants of my products, and show the original price as “Compare at price” (crossed out) next to it, like:
    • 130120
  2. Automatic Date-Based Price Change:
    I want to be able to set a start date and end date for the sale price. After the end date, the product should automatically revert to the regular price. For example:
    • Sale start date: January 15, 2025
    • Sale end date: January 20, 2025
  3. Dynamic Price Switching:
    I want the sale price to automatically be shown within the date range and be hidden after the sale ends, without manual intervention. I would like the system to automatically switch the prices back to the regular prices after the sale period is over.

Is there a way to implement this?

also the default way (compare at price) doesn’t work since i have coded the table in. Attaching image for reference
https://drive.google.com/file/d/1VR8rCUr5zK8P1XbwsJ0Wge8WCidRLfiM/view?usp=sharing

HI @ozar :waving_hand: all of this is possible , it’s better to ask a focused singular questions from the start.

Meanwhile full implementation of such a feature is beyond the scope and courtesy of a forum post.

For compare at price logic, sale prices, which simply doesn’t show anything if the compare at price is blank or greater.

See any free theme such as dawn https://github.com/Shopify/dawn

For price automation:

  • In stores on a shopify PLUS plan use launchpad
  • For all other plans a third party app is required as shopify-flow has no price based actions. An advanced usage would be see if this can be done the https action to do this through the api.

For non shopify Plus plans use an automation tool like usemechanic

https://tasks.mechanic.dev/advanced-scheduled-price-changes

Or a CSV spreadsheet based tool that has schedulable imports.

https://matrixify.app/tutorials/schedule-shopify-product-price-update/?category=products

If you need this type of automation and customization implemented then contact me for services.
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.