Conversations about creating, managing, and using metafields to store and retrieve custom data for apps and themes.
I want to do the following: when a customer clicks on an ad for a product, this product X appears first in the collection. When you click on an ad for product Y, that product appears first in the SAME collection. I want to do this countless times for countless products. other platforms that copy Shopify do this. How can I do it? I will leave some examples below:
https://www.sisterparty.com/collections/best-seller
https://www.sisterparty.com/collections/best-seller?from_short_url=true&id=6ce602dc-6ee7-4158-b99b-e...
see that the collection is the same, the only thing that changes are the URL parameters and the products
Hey @joaofelipe
Unfortunately this would only be possible client-side / using JavaScript. Which would break (or require multiple page fetches) if the collection had > 50 products.
Scott | Developer Advocate @ Shopify
So how did these pages I mentioned above do it?
Without digging into their code it's tricky to tell. Either some client-side JS, or maybe a hack like this.
Scott | Developer Advocate @ Shopify