magento - Call a custom phtml file in ajax layer popup -
i have custom .phtml file want call in ajax layer (lightbox) onclick, how can that?
thanks.
you need make controller in app/code/local/mynamespace/mymodulename/controllers
then call controller action in ajax call, in case;
$block = $this->getlayout()->createblock('catalog/product_view') ->setdata('product',$product) ->settemplate('catalog/product/quickview.phtml'); echo $block->renderview();
Comments
Post a Comment