Guleria
1
I’m trying to display line property both in cart and cart drawer both but it works in cart page but not in cart drawer.
Cart template code
{{ item.properties._lineimage }}
Cart drawer code
cartItem.properties[_lineimage ]
Ween I check the console log for
cartItem.properties
I found there is no related value available.
If anybody have a clue about it please help.
Regards
Hi,
can you please confirm, that how you’re getting cartItem? from json cart or pushing value in using forloop?
its better to share link please
1 Like
Hello @Jivan_Suhagiya ,
Thanks for checking it with me. I found out what’s the issue.
There was a condition
if (key.charAt(0) === ‘_’ || !value) {
which prevent and delete the lineitem with which have _ ( underscore ) in the beginning.
Thanks