I need to show a message of the added product inside cart in Magento 2.
I override addCartSuccessMessage phtml correctly but i can’t add an <img> tag inside this phtml file because it disapear.
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/** @var MagentoFrameworkViewElementTemplate $block */
?>
<div class="addCartSuccessMessaheHidden">
<img src="productImageUrl" />
<?= $block->escapeHtml(__(
'You added %1 to your <a href="%2">shopping cart</a>.',
$block->getData('product_name'),
$block->getData('cart_url')
), ['a']);
?>
</div>
What i need is something like this, after the user add a product in cart:
Thanks!!
I try to add an img tag, i try to add a popup using js…