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

  • How did you hide? – Adarsh Khatri Dec 12 '18 at 1:42
  • Display the code how you have tried. – Priyank Dec 12 '18 at 5:04
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 '';
        }
    }
  • @asad khan If my answer solved your problem, click the big checkbox to accept it as the answer. – Dhairya Shah Dec 12 '18 at 12:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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