Magento 2 how to get custom attribute value in cart page and weight in mini cart.
Magento 2 – Get Custom Attribute Value in Cart Page and Mini Cart
cartcustomcustom-attributesmagento2
Related Topic
- Magento – RWD mini-cart: How to reload cart page if product removed via mini cart
- Magento 2 – Set Custom Attribute Value on Cart Page
- Add Custom Product Attribute to Mini-Cart in Magento 2
- Magento 2 – Get Custom Attribute Title and Value in phtml File
- Magento 2 – How to Get Product Name and Qty in Mini Cart
- Magento2 Custom Attributes – How to Get Custom Attribute Value in Magento 2 Product Page
Best Answer
For displaying product attribute in minicart
1. Create file catalog_attributes.xml Vendor/Module/etc
2.Create di.xml in Vendor/Module/etc
3.Create file DefaultItem.php inside Vendor\Module\CustomerData
4.Create File default.html inside Current Theme app/design/frontend/Vendor/Themename/Magento_Checkout/web/template/minicart/item