문제

How to remove the picture and edit button from the mini-cart without using CSS

enter image description here

Expected Result

enter image description here

도움이 되었습니까?

해결책

You need to override the template in your theme.

The original file is here:

vendor/magento/module-checkout/view/frontend/web/template/minicart/item/default.html

Copy to:

app/design/frontend/your_vendor_name/your_theme_name/Magento_Checkout/web/template/minicart/item/default.html

Line 10 is where the photo HTML starts. Edit link is around line 100.

After deleting these you will need to deploy your static content:

bin/magento setup:static-content:deploy

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top