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
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.
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:
Hello, @LauraKincade
You should use the SKU attribute of the product variant instead of the product’s.
{{ product.selected_or_first_available_variant.sku }}