I try to display a custom product attribute instead of the price in minicart.
I saw that the html file that I have to override is price.html from module_checkout. price.html :
<!-- ko ifnot: true -->
<div class="price-container">
<span class="price-wrapper" data-bind="html: price"></span>
</div>
<!-- /ko -->
<!-- ko if: true -->
custom attribute product value here
<!-- /ko -->
And I already override this html in a requirejs-config.js :
var config = {
//override price.html file
map: {
'*' : {
'Magento_Checkout/template/minicart/item/price.html' : 'Vendor_Module/template/minicart/item/price.html'
}
}
};
I tried to put in that file a knockoutjs code if and ifnot, but I don't know how to retrieve my own product value in this html file. If someone know ?
Thanks in advance !