Tobe Osakwe
complete
Good news: I figured out how to make this work.
Here's an example video of it in action:
https://www.loom.com/share/b59cb8b501634729805ed0de6287c339?sid=82397756-9e6f-44e3-b493-1057bf8141a7
This will go live in about 30 minutes.
Once it's live, discounted prices on collection pages will automatically update when filters/sorting are applied.
If you upvoted or commented on this thread, we will reach out to verify this works as intended in your store.
Let us know if you have any further questions or concerns about our app.
Best,
Tobe
P.S. We want to hear about your experience with our app! Leave a review on the Shopify App Store.
Tobe Osakwe
Please keep in mind that this only works on the collection page, because that is the only place where Shopify will recognize filter/sort URL query parameters.
So if you're using the Collection Page Discount on the home page, and your theme supports user filtering/sorting of collections on the home page, it unfortunately cannot work.
However, I doubt this will be a problem for anyone using it, as I am yet to see a home page featured collection block that includes filtering + sorting on the client-side.
Tobe Osakwe
Unfortunately, there are major obstacles to implementing this, due to the way Shopify works, and the fact that every Shopify theme is different.
We will try our best to update collection page prices when filters are selected, but we feel it's important to be transparent about the challenges:
In most themes I've seen, when the user selects a filter on the collection page, the theme will call Shopify's Section Rendering API, and completely overwrite the HTML that contains product grid items, and the discounted prices that were displayed on the page.
The reason this is a problem, is that information about the current collection and its products is only available through Liquid.
We are exploring a potential solution involving using the Section Rendering API ourselves.
Stay tuned for updates.
Best,
Tobe
A
Andres Sirel
I noticed this myself as well that when the filter is activated, discount is not shown anymore. very much needed update
Tobe Osakwe
Andres Sirel: Thanks for sharing your feedback.
Because you have upvoted + commented, you will receive updates about this issue in your inbox.