I want to display the price and SKU in the product detail page. I've set luma as a parent theme. I am getting SKU under product-info-price div on frontend but not getting price. here is my layout file catalog_product_view.xml

<referenceContainer name="product.info.price">
                <block class="Magento\Catalog\Pricing\Render" name="product.price.msrp" before="product.price.final">
                        <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="price_type_code" xsi:type="string">configured_price</argument>
                        <argument name="zone" xsi:type="string">item_view</argument>


            <move element="product.price.final" destination="product.info.main" before="product.info.review" />

            <referenceContainer name="product.info.sku" remove="false" />
  • your above code having price_type_code key two times, which is seems wrong. – Knight017 Apr 20 at 11:38

Your Answer

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

Browse other questions tagged or ask your own question.