Solved

How can I add SKU to my collection page in Venture theme?

KathyP
Visitor
2 0 1

Looking for help regarding adding product sku to my collection page, at present i can see my sku on each individual page but when i look on my collection page it only has the vendor product title and price.  See image below.  I am using venture theme can anyone help?

 

Capture.JPG

Accepted Solutions (2)

Sasha2
Shopify Partner
172 22 46

This is an accepted solution.

Hi @KathyP 

 

A SKU of the first available product variant can be added for Collection page by adding one line of code to the "product-card.liquid" snippet of your theme.

Here the code that have to be added:

<div class="product-sku">{{ product.first_available_variant.sku }}</div>

To show a SKU right at the top of a Product vendor, kindly add the code right before Vendor's code:

{% if settings.product_vendor_enable %}
  <div class="product-card__brand">{{ product.vendor }}</div>
{% endif %}

So, the result would be next one:

<div class="product-sku">{{ product.first_available_variant.sku }}</div>
{% if settings.product_vendor_enable %}
  <div class="product-card__brand">{{ product.vendor }}</div>
{% endif %}

Here the screenshot for the reference: http://prntscr.com/sxl51f

View solution in original post

Sasha2
Shopify Partner
172 22 46

This is an accepted solution.

@Natahn-FMS 

Sure, to show SKU of the first product variant (no matter, does it available or sold out), instead {{ product.first_available_variant.sku }} code, just use {{ product.variants[0].sku }} code.

View solution in original post

Replies 28 (28)