How do I show MSRP on product page? Unicorn Meta Zoo #1: Why another podcast? ...

Trumpet valves, lengths, and pitch

Error: Syntax error. Missing ')' for CASE Statement

Additive group of local rings

Can you stand up from being prone using Skirmisher outside of your turn?

Israeli soda type drink

What is it called when you ride around on your front wheel?

How to not starve gigantic beasts

Why didn't the Space Shuttle bounce back into space as many times as possible so as to lose a lot of kinetic energy up there?

Multiple options vs single option UI

What is ls Largest Number Formed by only moving two sticks in 508?

Raising a bilingual kid. When should we introduce the majority language?

How do I check if a string is entirely made of the same substring?

Second order approximation of the loss function (Deep learning book, 7.33)

"My boss was furious with me and I have been fired" vs. "My boss was furious with me and I was fired"

What is the term for a person whose job is to place products on shelves in stores?

What's parked in Mil Moscow helicopter plant?

What's the difference between using dependency injection with a container and using a service locator?

Does Mathematica have an implementation of the Poisson Binomial Distribution?

Book with legacy programming code on a space ship that the main character hacks to escape

Map material from china not allowed to leave the country

Is Electric Central Heating worth it if using Solar Panels?

How to get even lighting when using flash for group photos near wall?

How to avoid introduction cliches

What is a 'Key' in computer science?



How do I show MSRP on product page?



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar ManaraHow to display MSRP / RRP on product page$_product->getMsrp() in price.phtml?How can i rewrite TierPrice Block in Magento2How in Block a productcollection of template render?Magento 2 Update a product name using Rest APIMagento 2: Adding a new function to MagentoCatalogBlockProductViewMagento 2: How to display brand name above product nameCant get product MSRP price in custom moduleHow to clone/copy product in magento 2 properly wayMagento 1.9 change error placement of validationMagento 2.3.0 - Create Product Page H1 title with product name and attribute name





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







1















I need to show the MSRP price next to the regular price on the product view page in a Magento 2 site.



So it would be like:




$199 (MSRP: $399)




I have found this question: How to display MSRP / RRP on product page



The problem is I am lacking some pre-requisite knowledge to follow these instructions.



The theme I am using doesn't have a price.phtml so I guess I need to override it from a module. I searched the vendor directory and found several price.phtml files which is confusing to me. Which one do I override?



The theme I am using (Ultimo) has a custom catalog_product_view.xml file which has this xml which I think refers to the part I want to edit:



<container name="product.info.price" label="Product info auxiliary container" htmlTag="div" htmlClass="product-info-price" after="product.info.review">
<container name="product.info.stock.sku" label="Product auxiliary info" htmlTag="div" htmlClass="product-info-stock-sku">
<container name="product.info.type" before="-"/>
<block class="MagentoCatalogBlockProductViewDescription" name="product.info.sku" template="product/view/attribute.phtml" after="product.info.type">
<arguments>
<argument name="at_call" xsi:type="string">getSku</argument>
<argument name="at_code" xsi:type="string">sku</argument>
<argument name="css_class" xsi:type="string">sku</argument>
<argument name="at_label" xsi:type="string">default</argument>
<argument name="add_attribute" xsi:type="string">itemprop="sku"</argument>
</arguments>
</block>
</container>
<block class="MagentoCatalogBlockProductView" name="product.info.review" template="product/view/review.phtml" after="product.info.stock.sku" />
<block class="MagentoCatalogPricingRender" name="product.price.final" after="product.info.sku">
<arguments>
<argument name="price_render" xsi:type="string">product.price.render.default</argument>
<argument name="price_type_code" xsi:type="string">final_price</argument>
<argument name="zone" xsi:type="string">item_view</argument>
</arguments>
</block>
</container>


So do I need to add something in to this xml for it to render the MSRP or do I need to edit something that it's already showing? I can't see which template is responsible for outputting price so does that mean the default magento 2 one is being used?



I am really struggling here to get a firm grip on how the system works and edit it in correct manner. Thanks for your help.










share|improve this question
















bumped to the homepage by Community 1 hour ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Im trying to do exactly the same, also with Ultimo. Did you manage to get this to work

    – Darren Sutherland
    Dec 5 '17 at 6:57











  • MSRP price can be shown in PDP by default in magento 2..Enable the MAP price and provide the msrp price from the Advanced pricing. For ref:mageplaza.com/kb/…

    – Haritha
    Nov 18 '18 at 9:16


















1















I need to show the MSRP price next to the regular price on the product view page in a Magento 2 site.



So it would be like:




$199 (MSRP: $399)




I have found this question: How to display MSRP / RRP on product page



The problem is I am lacking some pre-requisite knowledge to follow these instructions.



The theme I am using doesn't have a price.phtml so I guess I need to override it from a module. I searched the vendor directory and found several price.phtml files which is confusing to me. Which one do I override?



The theme I am using (Ultimo) has a custom catalog_product_view.xml file which has this xml which I think refers to the part I want to edit:



<container name="product.info.price" label="Product info auxiliary container" htmlTag="div" htmlClass="product-info-price" after="product.info.review">
<container name="product.info.stock.sku" label="Product auxiliary info" htmlTag="div" htmlClass="product-info-stock-sku">
<container name="product.info.type" before="-"/>
<block class="MagentoCatalogBlockProductViewDescription" name="product.info.sku" template="product/view/attribute.phtml" after="product.info.type">
<arguments>
<argument name="at_call" xsi:type="string">getSku</argument>
<argument name="at_code" xsi:type="string">sku</argument>
<argument name="css_class" xsi:type="string">sku</argument>
<argument name="at_label" xsi:type="string">default</argument>
<argument name="add_attribute" xsi:type="string">itemprop="sku"</argument>
</arguments>
</block>
</container>
<block class="MagentoCatalogBlockProductView" name="product.info.review" template="product/view/review.phtml" after="product.info.stock.sku" />
<block class="MagentoCatalogPricingRender" name="product.price.final" after="product.info.sku">
<arguments>
<argument name="price_render" xsi:type="string">product.price.render.default</argument>
<argument name="price_type_code" xsi:type="string">final_price</argument>
<argument name="zone" xsi:type="string">item_view</argument>
</arguments>
</block>
</container>


So do I need to add something in to this xml for it to render the MSRP or do I need to edit something that it's already showing? I can't see which template is responsible for outputting price so does that mean the default magento 2 one is being used?



I am really struggling here to get a firm grip on how the system works and edit it in correct manner. Thanks for your help.










share|improve this question
















bumped to the homepage by Community 1 hour ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Im trying to do exactly the same, also with Ultimo. Did you manage to get this to work

    – Darren Sutherland
    Dec 5 '17 at 6:57











  • MSRP price can be shown in PDP by default in magento 2..Enable the MAP price and provide the msrp price from the Advanced pricing. For ref:mageplaza.com/kb/…

    – Haritha
    Nov 18 '18 at 9:16














1












1








1








I need to show the MSRP price next to the regular price on the product view page in a Magento 2 site.



So it would be like:




$199 (MSRP: $399)




I have found this question: How to display MSRP / RRP on product page



The problem is I am lacking some pre-requisite knowledge to follow these instructions.



The theme I am using doesn't have a price.phtml so I guess I need to override it from a module. I searched the vendor directory and found several price.phtml files which is confusing to me. Which one do I override?



The theme I am using (Ultimo) has a custom catalog_product_view.xml file which has this xml which I think refers to the part I want to edit:



<container name="product.info.price" label="Product info auxiliary container" htmlTag="div" htmlClass="product-info-price" after="product.info.review">
<container name="product.info.stock.sku" label="Product auxiliary info" htmlTag="div" htmlClass="product-info-stock-sku">
<container name="product.info.type" before="-"/>
<block class="MagentoCatalogBlockProductViewDescription" name="product.info.sku" template="product/view/attribute.phtml" after="product.info.type">
<arguments>
<argument name="at_call" xsi:type="string">getSku</argument>
<argument name="at_code" xsi:type="string">sku</argument>
<argument name="css_class" xsi:type="string">sku</argument>
<argument name="at_label" xsi:type="string">default</argument>
<argument name="add_attribute" xsi:type="string">itemprop="sku"</argument>
</arguments>
</block>
</container>
<block class="MagentoCatalogBlockProductView" name="product.info.review" template="product/view/review.phtml" after="product.info.stock.sku" />
<block class="MagentoCatalogPricingRender" name="product.price.final" after="product.info.sku">
<arguments>
<argument name="price_render" xsi:type="string">product.price.render.default</argument>
<argument name="price_type_code" xsi:type="string">final_price</argument>
<argument name="zone" xsi:type="string">item_view</argument>
</arguments>
</block>
</container>


So do I need to add something in to this xml for it to render the MSRP or do I need to edit something that it's already showing? I can't see which template is responsible for outputting price so does that mean the default magento 2 one is being used?



I am really struggling here to get a firm grip on how the system works and edit it in correct manner. Thanks for your help.










share|improve this question
















I need to show the MSRP price next to the regular price on the product view page in a Magento 2 site.



So it would be like:




$199 (MSRP: $399)




I have found this question: How to display MSRP / RRP on product page



The problem is I am lacking some pre-requisite knowledge to follow these instructions.



The theme I am using doesn't have a price.phtml so I guess I need to override it from a module. I searched the vendor directory and found several price.phtml files which is confusing to me. Which one do I override?



The theme I am using (Ultimo) has a custom catalog_product_view.xml file which has this xml which I think refers to the part I want to edit:



<container name="product.info.price" label="Product info auxiliary container" htmlTag="div" htmlClass="product-info-price" after="product.info.review">
<container name="product.info.stock.sku" label="Product auxiliary info" htmlTag="div" htmlClass="product-info-stock-sku">
<container name="product.info.type" before="-"/>
<block class="MagentoCatalogBlockProductViewDescription" name="product.info.sku" template="product/view/attribute.phtml" after="product.info.type">
<arguments>
<argument name="at_call" xsi:type="string">getSku</argument>
<argument name="at_code" xsi:type="string">sku</argument>
<argument name="css_class" xsi:type="string">sku</argument>
<argument name="at_label" xsi:type="string">default</argument>
<argument name="add_attribute" xsi:type="string">itemprop="sku"</argument>
</arguments>
</block>
</container>
<block class="MagentoCatalogBlockProductView" name="product.info.review" template="product/view/review.phtml" after="product.info.stock.sku" />
<block class="MagentoCatalogPricingRender" name="product.price.final" after="product.info.sku">
<arguments>
<argument name="price_render" xsi:type="string">product.price.render.default</argument>
<argument name="price_type_code" xsi:type="string">final_price</argument>
<argument name="zone" xsi:type="string">item_view</argument>
</arguments>
</block>
</container>


So do I need to add something in to this xml for it to render the MSRP or do I need to edit something that it's already showing? I can't see which template is responsible for outputting price so does that mean the default magento 2 one is being used?



I am really struggling here to get a firm grip on how the system works and edit it in correct manner. Thanks for your help.







magento2 product






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 18 '17 at 10:51









Teja Bhagavan Kollepara

2,99241950




2,99241950










asked Jul 17 '17 at 23:52









GuerrillaGuerrilla

12211




12211





bumped to the homepage by Community 1 hour ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 1 hour ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Im trying to do exactly the same, also with Ultimo. Did you manage to get this to work

    – Darren Sutherland
    Dec 5 '17 at 6:57











  • MSRP price can be shown in PDP by default in magento 2..Enable the MAP price and provide the msrp price from the Advanced pricing. For ref:mageplaza.com/kb/…

    – Haritha
    Nov 18 '18 at 9:16



















  • Im trying to do exactly the same, also with Ultimo. Did you manage to get this to work

    – Darren Sutherland
    Dec 5 '17 at 6:57











  • MSRP price can be shown in PDP by default in magento 2..Enable the MAP price and provide the msrp price from the Advanced pricing. For ref:mageplaza.com/kb/…

    – Haritha
    Nov 18 '18 at 9:16

















Im trying to do exactly the same, also with Ultimo. Did you manage to get this to work

– Darren Sutherland
Dec 5 '17 at 6:57





Im trying to do exactly the same, also with Ultimo. Did you manage to get this to work

– Darren Sutherland
Dec 5 '17 at 6:57













MSRP price can be shown in PDP by default in magento 2..Enable the MAP price and provide the msrp price from the Advanced pricing. For ref:mageplaza.com/kb/…

– Haritha
Nov 18 '18 at 9:16





MSRP price can be shown in PDP by default in magento 2..Enable the MAP price and provide the msrp price from the Advanced pricing. For ref:mageplaza.com/kb/…

– Haritha
Nov 18 '18 at 9:16










2 Answers
2






active

oldest

votes


















0














To show msrp price you can add a following code to catalog_product_view.xml



<referenceContainer name="product.info.main">
<referenceContainer name="product.info.price">
<block class="MagentoCatalogPricingRender" name="product.price.msrp" before="product.price.final">
<arguments>
<argument name="price_render" xsi:type="string">product.price.render.default</argument>
<argument name="price_type_code" xsi:type="string">msrp_price</argument>
<argument name="zone" xsi:type="string">item_view</argument>
</arguments>
</block>
</referenceContainer>
</referenceContainer>




Template responsible for display msrp price




module-msrp/view/base/templates/product/price/msrp.phtml







share|improve this answer

































    -1














    Please enable template path hints to check which price.phtml file is rendering the price. If it is displayed from core theme please override that and do the changes to display MSRP.






    share|improve this answer
























    • vendor/magento/module-msrp/view/base/templates/product/price/msrp.phtml template deals with price display when MSRP is enabled. Real price is in the $data object - $data['addToCart']['realPrice']

      – Gediminas
      Sep 12 '17 at 9:48












    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "479"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f184187%2fhow-do-i-show-msrp-on-product-page%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    To show msrp price you can add a following code to catalog_product_view.xml



    <referenceContainer name="product.info.main">
    <referenceContainer name="product.info.price">
    <block class="MagentoCatalogPricingRender" name="product.price.msrp" before="product.price.final">
    <arguments>
    <argument name="price_render" xsi:type="string">product.price.render.default</argument>
    <argument name="price_type_code" xsi:type="string">msrp_price</argument>
    <argument name="zone" xsi:type="string">item_view</argument>
    </arguments>
    </block>
    </referenceContainer>
    </referenceContainer>




    Template responsible for display msrp price




    module-msrp/view/base/templates/product/price/msrp.phtml







    share|improve this answer






























      0














      To show msrp price you can add a following code to catalog_product_view.xml



      <referenceContainer name="product.info.main">
      <referenceContainer name="product.info.price">
      <block class="MagentoCatalogPricingRender" name="product.price.msrp" before="product.price.final">
      <arguments>
      <argument name="price_render" xsi:type="string">product.price.render.default</argument>
      <argument name="price_type_code" xsi:type="string">msrp_price</argument>
      <argument name="zone" xsi:type="string">item_view</argument>
      </arguments>
      </block>
      </referenceContainer>
      </referenceContainer>




      Template responsible for display msrp price




      module-msrp/view/base/templates/product/price/msrp.phtml







      share|improve this answer




























        0












        0








        0







        To show msrp price you can add a following code to catalog_product_view.xml



        <referenceContainer name="product.info.main">
        <referenceContainer name="product.info.price">
        <block class="MagentoCatalogPricingRender" name="product.price.msrp" before="product.price.final">
        <arguments>
        <argument name="price_render" xsi:type="string">product.price.render.default</argument>
        <argument name="price_type_code" xsi:type="string">msrp_price</argument>
        <argument name="zone" xsi:type="string">item_view</argument>
        </arguments>
        </block>
        </referenceContainer>
        </referenceContainer>




        Template responsible for display msrp price




        module-msrp/view/base/templates/product/price/msrp.phtml







        share|improve this answer















        To show msrp price you can add a following code to catalog_product_view.xml



        <referenceContainer name="product.info.main">
        <referenceContainer name="product.info.price">
        <block class="MagentoCatalogPricingRender" name="product.price.msrp" before="product.price.final">
        <arguments>
        <argument name="price_render" xsi:type="string">product.price.render.default</argument>
        <argument name="price_type_code" xsi:type="string">msrp_price</argument>
        <argument name="zone" xsi:type="string">item_view</argument>
        </arguments>
        </block>
        </referenceContainer>
        </referenceContainer>




        Template responsible for display msrp price




        module-msrp/view/base/templates/product/price/msrp.phtml








        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jun 23 '18 at 18:23









        Rohan Hapani

        7,16131865




        7,16131865










        answered Sep 14 '17 at 11:19









        waldemarwaldemar

        1




        1

























            -1














            Please enable template path hints to check which price.phtml file is rendering the price. If it is displayed from core theme please override that and do the changes to display MSRP.






            share|improve this answer
























            • vendor/magento/module-msrp/view/base/templates/product/price/msrp.phtml template deals with price display when MSRP is enabled. Real price is in the $data object - $data['addToCart']['realPrice']

              – Gediminas
              Sep 12 '17 at 9:48
















            -1














            Please enable template path hints to check which price.phtml file is rendering the price. If it is displayed from core theme please override that and do the changes to display MSRP.






            share|improve this answer
























            • vendor/magento/module-msrp/view/base/templates/product/price/msrp.phtml template deals with price display when MSRP is enabled. Real price is in the $data object - $data['addToCart']['realPrice']

              – Gediminas
              Sep 12 '17 at 9:48














            -1












            -1








            -1







            Please enable template path hints to check which price.phtml file is rendering the price. If it is displayed from core theme please override that and do the changes to display MSRP.






            share|improve this answer













            Please enable template path hints to check which price.phtml file is rendering the price. If it is displayed from core theme please override that and do the changes to display MSRP.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jul 18 '17 at 11:53









            VenkateshVenkatesh

            743




            743













            • vendor/magento/module-msrp/view/base/templates/product/price/msrp.phtml template deals with price display when MSRP is enabled. Real price is in the $data object - $data['addToCart']['realPrice']

              – Gediminas
              Sep 12 '17 at 9:48



















            • vendor/magento/module-msrp/view/base/templates/product/price/msrp.phtml template deals with price display when MSRP is enabled. Real price is in the $data object - $data['addToCart']['realPrice']

              – Gediminas
              Sep 12 '17 at 9:48

















            vendor/magento/module-msrp/view/base/templates/product/price/msrp.phtml template deals with price display when MSRP is enabled. Real price is in the $data object - $data['addToCart']['realPrice']

            – Gediminas
            Sep 12 '17 at 9:48





            vendor/magento/module-msrp/view/base/templates/product/price/msrp.phtml template deals with price display when MSRP is enabled. Real price is in the $data object - $data['addToCart']['realPrice']

            – Gediminas
            Sep 12 '17 at 9:48


















            draft saved

            draft discarded




















































            Thanks for contributing an answer to Magento Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f184187%2fhow-do-i-show-msrp-on-product-page%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            “%fieldName is a required field.”, in Magento2 REST API Call for GET Method Type The Next...

            How to change City field to a dropdown in Checkout step Magento 2Magento 2 : How to change UI field(s)...

            夢乃愛華...