How to add sku on to the collection page in the Expression Theme

Conor318
Visitor
1 0 0

Hello!

im trying to add our sku's onto our collection page so that the items display all of the following:

sku..PNG

Name, Price, & Sku.

As in the example uploaded you can see the Name And Price are on the collection pages, however the SKU is missing.

I should note that the SKU's ARE available on the product page themselves, but not on the collection pages .

I know there's some coding involved but I cant seem to find the right location / code to add to make this possible with our specific theme?

Any help would be greatly apricated 

Reply 1 (1)

Taknify
Shopify Partner
189 14 24

Hello,

This document may help you figure that out.
https://shopify.dev/docs/api/liquid/objects#variant-sku

A product has variants on it and variants contains the SKU. So you have to loop through the product, then variant and get the SKU object. 

Let me know if you need help on that. 
Best,
Taknify


Need to tweak your store a bit? Come and visit us at Taknify or send me message.