Remove price from category page in magento 2
-
15-03-2021 - |
Question
In magento2 - I want to remove price from category page ( product listing ) in magento enterprise version.
Solution
app/design/frontend/vendor/themename/Magento_Catalog/templates/product/list.phtml
<?php //echo $block->getProductPrice($_product) ?>
comment this line...
Note : if you not find file above path than copy from
vendor/magento/module-catalog/view/frontend/templates/product/list.phtml
to
app/design/frontend/vendor/themename/Magento_Catalog/templates/product/list.phtml
OTHER TIPS
We use a different solution with applying a CSS-style:
div.products.wrapper.grid.products-grid div.price-box.price-final_price, /*pricing in categories*/
{
display: none !important;
}
We use this way to avoid problems with the updated list.phtml
file by further Magento updates and in our case hiding price is only a "nice to have" but not business-critical.
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange