skip to Main Content

Mini-cart changes not taking effect – Magento 2

I need to change mini-cart in our theme that falls back to magento 2 luna theme to show it using hover instead of click. So I have copied /vendor/magento/module-checkout/view/frontend/templates/cart/minicart.phtml to /app/design/frontend/[ourCompany]/[websitename]/Magento_Checkout/templates/cart/minicart.phtml Edited the file: .... <div class="block block-minicart empty" data-role="dropdownDialog"…

VIEW QUESTION

Get magento 2 custom attribute value

I am able to display attribute values using the code below BUT if the attribute is empty it just prints out the word "No" <?php echo $_product->getResource()->getAttribute('c_address')->getFrontend()->getValue($_product); ?>

VIEW QUESTION
Back To Top
Search