Web Analytics

Fill the form & Get Installation Support

How to render phtml code using ajax in magento 2?

create phtml file at

app/code/Magemonkeys/Custom/view/frontend/templates/index.phtml

create js file at

app/code/Magemonkeys/Custom/view/frontend/web/js/custom.js

Create a controller file at

app/code/Magemonkeys/Custom/Controller/Index/View.php

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