I have created an Automatic Discount that applies to a specific Collection. The discount rule is 40% on all products within that collection.
The discount is visible when i add the product to the cart and view it in the cart. But i am not able to figure out how to get the discount to show on the product page.
All the articles i have read seem to apply to products that have a different compare price.
Not 100% sure, but my understanding is that you (I mean your theme code) can’t know what discounts apply until you add item to cart and only then this information is available, as not all discounts are as simple as yours.
With some hackish javascript your can do it in background and update the data displayed on the product page, but …
In your case you may be better off by simply outputting the {{ product.price | times: 0.6 | money }} (and so on) based on some condition?
However, if your products has variants, it’s a bit more complex and will need javascript modification as well.
Shopify Discounts have limitations, but I see a reason why Auto discounts applied in cart only, because some may apply only if entire order is more than threshold.
You may consider using an App, general automation app like Arigato or Mechanic, or some discount app.
Say, you can instruct the app to loop over products in particular collection and assign compare_at_price to be product.price * 1.4
Sorry, I am not a good help when selecting a discount app.
Im running into the same situation. We run x% off collections/certain products/etc.
Anyone know of (or willing to write) and app I can turn off and on that will read the active discounts using shopify discounts
I still can’t believe this isnt a core feature (like it is on so many other carts)
The problem with editing the code alone is everytime we run a sale we’d have to edit the code, worse yet some of our products have up to 55 variations.
I don’t think that qualifies as a solution- Shopify is supposedly an ecommerce platform and they do not even give the basic ability to post SALE PRICES without some bunch of BS and modification of code? This is getting to be a bit much. I mean, FOR GOD’S SAKE- THIS IS AN ECOMMERCE PLATFORM WITHOUT THE ABILITY TO SHOW SALE PRICES- GTF REAL… Have you taken this up with Shopify? What is the giant scam here that they REFUSE TO IMPLEMENT THINGS THAT ARE STANDARD ELSEWHERE?
What would you put as the code if you want the price to update when they pick 3 on the quantity picker? I guess like a quantity break, eg buy 3 get 20% off
I installed the Vela app and it lets me bulk edit products for free. I can add/remove text to product pages for items that are on sale, such as BOGO 50% OFF.
The following changes in red make every single product be 20% off which is what I needed. If I want to change it to 10% off I change the “times: 0.8 => times: 0.9”. This causes the original price to have a line through it then the sale price is next to it with the word “Sale”. Note: I already had created a 20% discount on the Discounts page which already makes the discount in the cart. If you don’t want it to show any sale price, just change the “times: 0.8 => times: 1.0”. This change below now shows the discount on the collection pages and on the product pages.
Note: I have no idea how to only change some of the products and not all. I also suspect there is a way to tap into the actual discount you created like variant.discount or something like that but I did not investigate that because this solution solved my problem. I agree it should definitely be easier but this method sure beats changing the compare to prices on all the listings. Hope this helps someone else.
Here’s what it looks like. Your colors will vary depending on how you have your shop set up.
Thank you for sharing this Paula! This was a huge help. Are you aware of any way we can show the discount price on the category page as well? I imagine we would need to modify another liquid file. Just not sure which one, kind of new to this.
Hi @Brando1 , I’m not sure if this is what you are looking for but this app Codeboost I use let’s you promote discount codes across your website really well. You can add custom messages including the percentage the discount code will apply on the eligible products, fully customizable.
I like it because I do not have to modify any theme code.
Description from marketplace:
Codeboost will allow you to display badges and messages above eligible products in the collections page, product page and cart page. Additionally you can only show these promotions selectively and privately to specific customers!