2

Actually I hide the Prices of all the products n I was expecting that the Limit Product price will be also hide but it was not hidden. I'm going to upload Image for you guys clearance. Thanks in Advance enter image description here

2
  • How did you hide? Dec 12, 2018 at 1:42
  • Display the code how you have tried.
    – Priyank
    Dec 12, 2018 at 5:04

1 Answer 1

1

app/code/Vendor/Module/etc/frontend/di.xml

<?xml version="1.0" encoding="UTF-8"?>

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">    
    <type name="Magento\Catalog\Pricing\Render\FinalPriceBox">
        <plugin name="price_hide" type="Vendor\Module\Plugin\Price" sortOrder="1" disabled="false"/>        
    </type>
</config>

Vendor\Module\Plugin\Price.php

<?php

namespace Vendor\Module\Plugin;

    class Price
    {
        function aroundToHtml(\Magento\Catalog\Pricing\Render\FinalPriceBox $subject, callable $proceed) {         
                return '';
        }
    }
1
  • @asad khan If my answer solved your problem, click the big checkbox to accept it as the answer. Dec 12, 2018 at 12:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.