Hi guys, I am looking for a way to add a specific code to the product description, which would display the product name (title) on one line and the SKU / Barcode for each variant on the second line (depending on which one is selected). I tried to add something in this style, but unfortunately, nothing works for me. Thank you.
Topic summary
A user seeks to display product title and SKU/barcode for selected variants in the product description area. They attempted custom code but encountered issues.
Initial Solution Proposed:
- Another user suggested Liquid code to be added to
snippets/card-product.liquid - Code includes product title, SKU from selected/first available variant, and published date
- Must be implemented through Store Online → Theme → Edit Code
Current Issue:
- The proposed code doesn’t display correctly when implemented
- User shared a screenshot showing the problem
Key Technical Points:
- Code must be placed in Liquid template files, not directly in product description
- Variable names need adjustment: replace
card_productwithproductfor product page context - Original code appears reversed/corrupted in the post
Status: Unresolved. A support representative requested the theme files (zip download) to provide a tailored solution.
Hi @Vlk1 ,
May I suggest code below:
###
{{ card_product.title }}
SKU: {{ card_product.selected_or_first_available_variant.sku }}
Datum vydání: {{ card_product.published_at | date: "%a, %b %d, %y" }}
Hello, I have tried to put it there. It does not show what code suppose to show, it gets stucked on this. Do you have any idea why? Thank you
Hi,
You must to put this code to liquid file.
- Go to Store Online-> theme → edit code
-
snippets/card-product.liquid
-
Your screenshot used in the product page. So you need replace “card_product” to " product "
-
The case that is not work. Could you share your content of the file that you put code? I will help to add after that you only copy to replace old code.
Hi @Vlk1
Can you kindly download your theme and share your file zip with us or your theme name? We will help you check it and suggest you a solution.

