Web Analytics

Fill the form & Get Installation Support

Any Question or Concerns?
Let's discuss





    How to add custom text after price on product detail page in Magento 2?

    Related articles

    If you want to show custom text after price on product detail page in product view page, then follow the below steps.

    1. Create catalog_product_view.xml in your custom theme

    app/design/frontend/[Vendor_name]/[theme_name]/Magento_Catalog/layout/catalog_product_view.xml

    Now you have to create price_after_text.phtml fle and add your custom text in it

    app/design/frontend/Vendor/theme/Magento_Catalog/templates/view/price_after_text.phtml

    2. If you want to set custom text after price at everywhere then override default final_price.phtml file

    from

    vendor/magento/module-catalog/view/base/templates/product/price/final_price.phtml

    to

    app/design/frontend/[Vendor_name]/[theme_name]/Magento_Catalog/templates/product/price/final_price.phtml

    3.  Most easy way to doing it with some style

    After doing above task run below commands

    That’s it.

    Now clean cache and check your product page for custom text after price.

    Contact us for scientific strategies to increase your site conversions





      Connect With Us