Shopify themes, liquid, logos, and UX
Can anyone give advice on how to add product SKUs under products in collections?
Example collection on my site: https://milkymotorsports.com/collections/fox-offroad-shocks
yes you can add this code card product snippet file this
<div class="product-sku">{{ product.first_available_variant.sku }}</div>
For an OS2.0 theme see if there are custom-liquid blocks/sections for the template type the area in you want to display the additional information.
If a custom-liquid setting is present,
For the first variant of products used in a collection product-grid:
{{ product.first_available_variant.sku }}
On product pages , for the currently selected variant theme shows a ?variant= parameter in the url:
{{ product.selected_variant.sku }}
https://shopify.dev/api/liquid/objects/product#product-first_available_variant
https://shopify.dev/api/liquid/objects/product#product-selected_variant
https://shopify.dev/api/liquid/objects/variant#variant-sku
If there is no appropriate custom-liquid setting the template itself will have to be modified to use one of the above liquid outputs.
Search similar - { theme name } { issue }
User | RANK |
---|---|
57 | |
52 | |
46 | |
39 | |
39 |
Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023Summary of EventsBeginning in January of 2023, some merchants reported seeing a large amo...
By Trevor May 15, 2023With 2-Factor Authentication being required to use Shopify Payments, we’re here to help yo...
By Imogen Apr 26, 2023