Hi there,
I am using the Debut them and I wanted to add subtitles to my products. After some research I found that that I can leverage metafields to do this. I downloaded the free Metafields Guru app and created a metafield for this product:
www.casabelashoppe.com/products/believe.
And then I updated the product-template.liquid file as follows:
Everything is looking fine on the product page, but I also want to see this information in the checkout and cart.
I tried adding below to the cart-template.liquid and to customers/order.liquid:
{{product.metafields.myproduct.subtitle}}
I had no luck.
Can someone please help?
Thank you!
-Liz
Hello casabelashoppe,
You are using Shopify or Shopify plus?
In Shopify we can’t display that in checkout page.
Hi Liz,
To add metafields to the cart page, you just need to modify your code slightly.
FROM: {{product.metafields.myproduct.subtitle}}
TO: {{item.product.metafields.myproduct.subtitle}}
It’s not possible to make modifications to the checkout page unless you’re on Shopify Plus.
Hey @sroy ,
I’m doing the exact same thing as the OP - when I use {{item.product.metafields.myproduct.subtitle}} in cart-item.liquid (we are trying to display metafield data in cart drawer) it does not display the item data from the metafield.
We are using Impulse theme and the metafields are displaying on product pages fine.
Thanks!