1

On the cart page, I currently display items that have been added to the cart with:

{{ lineItem.description }}

What I want to do, rather than displaying the product name and variant title as one, is to split them. So that I can display the variant title separately from the product name.

What is the correct model for this?

  • lineItem.purchasable.title is the variant title, lineItem.purchasable.product.title is the product title. – Jeremy Daalder Oct 18 '16 at 11:05
2

lineItem.purchasable.title is the variant title, lineItem.purchasable.product.title is the product title.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.