SKU on product page Pipeline Theme

Topic summary

A user seeks help adding SKU numbers to product pages in the Pipeline theme, which lacks this built-in functionality. Their initial attempt using {{ product.sku }} did not work.

Solution provided by multiple respondents:

  • SKUs in Shopify are tied to product variants, not products themselves
  • Use {{ product.selected_or_first_available_variant.sku }} instead
  • Recommended code snippet:
{% if product.selected_or_first_available_variant.sku != blank %}
  SKU: {{ product.selected_or_first_available_variant.sku }}
{% endif %}

Additional guidance:

  • The conditional check ensures SKU only displays when present
  • Reference to Shopify’s official variant object documentation provided for further understanding

The issue appears resolved with consistent advice from multiple community members.

Summarized with AI on November 9. AI used: claude-sonnet-4-5-20250929.

Hi everyone, could please anyone help me write a snippet liquid code to add onto our product page to showcase the sku number? Pipeline theme doesnt have this function. I tried with adding a liquid block with this: {{ product.sku }} but didnt work.

page: https://www.laurakincade.com/products/pair-of-mauro-large-table-lamps?variant=43560725020822

Hello, @LauraKincade

You should use the SKU attribute of the product variant instead of the product’s.

Hey @LauraKincade ,

To display the SKU of a product in your Shopify store, ensure that you’re showcasing the SKU of the variant rather than that of the product itself. In Shopify, SKUs are associated with variants.

You can use the below liquid code to show the SKU:

{% if product.selected_or_first_available_variant.sku != blank %}
  

SKU: {{ product.selected_or_first_available_variant.sku }}

{% endif %}

For further understanding of variant objects and SKUs, you can refer to this link from Shopify’s documentation: Shopify Variant Object and SKU documentation.

Hope this helps!

Regards,

Abhishek from Swym

Hello, @LauraKincade
You should use the SKU attribute of the product variant instead of the product’s.
{{ product.selected_or_first_available_variant.sku }}

If you face any issue let me know

Thanks