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

    . . .
    Subscribe Articles

    Just enter your email below to subscribe and receive weekly updates about the most interesting similar articles.

    You need to accept conditions to receive letters.
    You've Subscribed!

    Share article via

    . . .

    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-

    . . .


    Add Your Comment

    Be the first to comment.

    Back to Top
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again