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++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -