I am trying to call a phtml file from Ajax on the main page of my Magento site. I basically made a copy of the /design/frontend/base/default/template/catalog/product/list.phtml application and configured it to view a specific category. If I add a block pointing to this file in the CMS section, I can view it just fine. However, I want to call this file through Ajax.
I followed the instructions for creating the module here , and then I tried to follow the Ajax logic in Magento by following this post . However, in the last step, he lists:
<module_controller_action>
<block type="module/block" name="root" output="toHtml" template="module/template.phtml"/>
</module_controller_action>
Where can i put this in? Also for template="module/template.phtml"which folder refers to?
source
share