Menu Close
    Hire us Request quote Reading list Switch to dark mode

    Add custom text under price details on product page Magento 2

    Hello guys, too often we need to add some custom text under the price details on the product view page. Here is how we can do it without many efforts.

    The first step is to overwrite the pricing renderer-

    for this, you can add the following code in di.xml in the etc folder-


    The second step is to create the renderer file that we have defined in di.xml

    write the following code to FinalPriceBox.php in Webkul\MobikulCore\Plugin\Pricing\Renderer Folder –


    That is all. Now save the files, flush the cache and see the magic on the Product view page.
    Here is how it will look like-

    . . .

    Comment

    Add Your Comment

    Be the first to comment.

    Back to Top
    css.php
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just received your message and our expert will get back to you shortly.
    Send Again
    Close