How can I display specific product variants on a listing page?

How can I display specific product variants on a listing page?

GrantDB
Shopify Partner
82 3 15

I want to be able to show specific variants in a listing page.  For example lets say a product A has variants 1, 2 and 3, I only want to show A-2 on a listing page.

 

I can see apps that take a collection and show all variants, but I don't want that.  I just want to show a specific variant

 

Ideally that would be based on a sku, but I could possibly do something based on price (an item that doesn't have a compare at price maybe) or variant metadata.

 

The reason is that I want to show variants that I have discounted.  For a product I may have only discounted one of the variants

 

Thanks

 

Grant

Replies 4 (4)

Lucid_Polygon
Shopify Partner
349 63 96

Can you show with a screenshot so its easy for us to understand?

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
GrantDB
Shopify Partner
82 3 15

Easier with a link, the below is a standard collection, when I created it I used the sku, when it displays it show the product (I understand that Shopify uses the sku to get the product and then stores the product)

 

https://harpercollins.co.uk/collections/contemporary-fiction?sortBy=shopifycollinsproducts_recently_...

 

First one Cleopatra and Frankenstein, I used 9780008421786 for the collection, but when listed, it lists the product.  Clicking on the image take me to the product

 

https://harpercollins.co.uk/products/cleopatra-and-frankenstein-coco-mellors?variant=39469482770510

 

When really I want to go to the variant linked to my sku, which would be this

 

https://harpercollins.co.uk/products/cleopatra-and-frankenstein-coco-mellors?variant=39469482836046

 

Thanks

 

Grant

Lucid_Polygon
Shopify Partner
349 63 96
  • You should be able to go to the product, then reorder the variants.
  • So when user clicks on product from collection page, it goes to the page of first variant 
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
GrantDB
Shopify Partner
82 3 15

I don't want to change anything about the product variant order.  It is just the listing page that I want to take a user to specific variant.  I could of course build the page myself, I just want to make it as automated as possible

 

Thanks

 

Grant