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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -