Please help me how I can display the label 'Inclusive of all taxes' after the original product price on the product page in the magento2 platform?
And also let me know the file structure where I can easily add the HTML code to show the same.
see the screenshot for your reference: https://prnt.sc/10hqx9e
<div class="product-info-price"><div class="price-box price-final_price" data-role="" data-product-id="" data-price-box=""><span class="label-taxes"><label>Inclusive of all taxes</label></span></div></div>
The above code is just a dummy code but I have used the default div structure of magneto2 of product pages.
Please help!
Thanks in Advance.
My Answer:
To add the label 'Inclusive of all taxes' after the original product price on the product page in Magento 2, you can follow these steps:
1. Create a custom module or theme in Magento 2 if you don't already have one.
2. Navigate to the following file in your custom module or theme:
app/design/frontend/{Vendor}/{theme}/Magento_Catalog/templates/product/price/final_price.phtml
3. Add the following HTML code after the original product price code in the final_price.phtml file:
html
4. Save the file and clear the cache in Magento 2.
This will display the label 'Inclusive of all taxes' after the original product price on the product page in Magento 2. Make sure to adjust the file path according to your custom module or theme structure.
Rate this post
4 of 5 based on 6793 votesComments