0

Please help me this task I don't know how to implement this task.The below screenshot is my requirement. enter image description here

1

you can use this code to get MSRP in List Page

 if( $_product->getMsrp()){
        $msrpPrice  = $_product->getMsrp();
    echo "<div class='price-box'>
    <span class='old-price'>
        <span class='price-container price-final_price tax weee'>
            <span class='price-label'>Retail</span>
                <span id='old-price-1'  class='price-wrapper'><span class='price'>".$this->helper('Magento\Framework\Pricing\Helper\Data')->currency($_product->getMsrp())."</span></span>
        </span>
    </span>
    </div>";
}
| improve this answer | |
  • Hi @ Aravind, Can you please send me file path.Can you please help me. – Dileep Kumar Mar 14 '18 at 11:42
  • Have you overide your catalog file in your theme?? – aravind Mar 14 '18 at 11:46
  • Hi@Aravind, Your code is not working.Can you please help me? – Dileep Kumar Mar 15 '18 at 5:16
  • could you post your list.phtml file you are using.. – aravind Mar 15 '18 at 5:26
  • Hi @ Aravind, This is my file path adding your code:C:\xampp7.0\htdocs\magento2\vendor\magento\module-catalog\view\frontend\templates\product\list.phtml Can you please help me? – Dileep Kumar Mar 15 '18 at 8:41
0

check below link for MSRP Price

 https://www.mageplaza.com/kb/how-to-configure-minimum-advertised-price-map-in-magento-2.html
| improve this answer | |
  • Hi @ Aravind, I have followed your link but it doesn't display.Can you please help me? – Dileep Kumar Mar 14 '18 at 10:56
  • MSRP price does not display in the product listing page – Dileep Kumar Mar 14 '18 at 10:58
  • Hi @ Aravind, In list.phtml file adding your code it is not working.Can you please help me? – Dileep Kumar Mar 16 '18 at 4:49

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.