Im trying to load an file sales/guest/form.phtml for added tab left navigation tab on customer my account, via customer.xml but didn't kindly help me. Refund
I have done somewhat similar in my old project. here is what i do :
Added a new link in My Account section from customers.xml ie
<action method="addLink" translate="label" module="preorder"><name>Previous_Orders</name><path>preorder/index/</path><label>Previous Orders</label></action>
In your case you can use an already running module instead of preorder and change the name in above action.
In module/contollers/IndexController.php add a view as follows :
public function viewAction()
{
$this->loadLayout();
$this->renderLayout();
}
Add preorder/preorder.phtml template folder in your theme template folder.
in your theme layout folder add preorder.xml as follows:
<?xml version="1.0"?>
<layout version="0.1.0">
<default>
</default>
<preorder_index_index>
<label>Customer My Account Previous Orders</label>
<update handle="customer_account"/>
<reference name="content">
<block type="preorder/preorder" name="preorder" template="preorder/preorder.phtml" />
</reference>
</preorder_index_index>
</layout>
Hope you ot the idea, what we have done is created a new module which loads the template on index action, you cn change the name of module "preorder" and also the action "index" while working on this.
I was very brief while writing this, Hope this helps you in someway.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.