Shopify themes, liquid, logos, and UX
I've searched and cannot find how to display the sku on a collections page using Dawn 5.0. I see a lot of code examples that work for themes before 2.0, but I can't make any of them work on Dawn. Nothing shows up.
I've identified that the code should go on card-product.liquid. I can put dummy text and it shows up where I want the sku to appear.
Strangely, I can make it work on the product page. Apparently, the product page calls some function that then supports the sku. I need to discover that function so I can incorporate it into card-product.liquid.
Any help would be appreciated. Thanks.
Solved! Go to the solution
This is an accepted solution.
Hello @dbwebb56 ,
You need to put this code in the card-product.liquid file for the product sku.
Code :- {{ card_product.selected_or_first_available_variant.sku }}
Hopefully that helps.
This is an accepted solution.
Hello @dbwebb56 ,
You need to put this code in the card-product.liquid file for the product sku.
Code :- {{ card_product.selected_or_first_available_variant.sku }}
Hopefully that helps.
That worked, thanks.
Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024