Hi,
I have a problem when trying to read the description of a product from Sanity. I would like to show the description on the cart and on the Order Email, but it says [objsct objsct].
Is there a way where I can change the HTML of the Item Description?
I tried this code in custom.js but it is not working.
module.exports = `<item-line>
<li class="snipcart__item__line snipcart__box">
<div class="snipcart__item__line__product">
<div class="snipcart__item__line__header">
<h2 class="snipcart__item__line__header__title">
{{ item.title}}
</h2>
<div v-html="item.description" class="b--content-a b--single-a__wrapper__content__hd__content"></div>
<item-quantity class="snipcart__item__line__quantity" v-if="!adding"></item-quantity>
<div class="snipcart__item__line__header__actions">
<remove-item-action class="snipcart__button--icon">
<icon name="trash" class="icon--red" alt="item.remove_item"></icon>
</remove-item-action>
</div>
</div>
</div>
</li>
</item-line>`;
This is the Sanity Information:
This is how it shows up:
This is the code I need inside the custom.js. Is it posible?
<SanityContent :blocks="item.description" class="b--content-a b--single-a__wrapper__content__hd__content" />
Thanks in advance
Nerea