Question

enter image description hereIn Magento2 I want to hide the price-notice and the qty-holder from the bundle product page. I want to edit the _custom.less page but not sure what to write in it. Any help would help. Thanks!

qty holder

price notice

screenshot

enter image description here

Was it helpful?

Solution

You need to search for those classes in the repository/source code, and then use the same nesting in your _custom.less file. The path to get to that class needs to match what it is currently. You can also see this in the browser by inspecting those elements. The classes themselves will need either visibility: hidden; or display: none; depending on what your trying to achieve exactly. You can also test this in the browser inspector before putting in your file. When done, deploy your static content php bin/magento setup:static-content:deploy and if cache is enabled, clear it php bin/magento cache:flush.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top