Web Analytics

Fill the form & Get Installation Support

How to render phtml code using ajax in magento 2?

create phtml file at


create js file at


Create a controller file at


create block file at app/code/Magemonkeys/Custom/Block/Index/View.php

create phtml file  at app/code/Magemonkeys/Custom/view/frontend/templates/view.phtml

that’s it.


Fill the below form if you have any Magento programming need.

    Recent Articles

    Author Info

    Author Image

    Magento 2 Developer

    Hire P. Garchar

    Get a Free Quote

      /* second popup */

      Connect With Us