I am trying to implement an adjustment to the default .phtml files that are shipped with magento. I am a little confused as to how the .phtml files are altered without adjusting them directly, consequently I am failing to get this to work. The example I will use is the account dashboard heading (found on
storeName.local/index.php/customer/account/index/) MY ACCOUNT, I'd like to change it to [USERSNAME]'S ACCOUNT.
To do this I have copied the contents of
customer/account/navigation.phtml into the file path
myNamespace/modulename/account/navigation.phtml on line 29 there is this code
<?php echo $this->__('My Account'); ?> my random text for testing
and added this to my modulename/layout.xml
<modulename_index_index> <reference name="left"> <block type="customer/account_navigation" name="customer_account_navigation" before="-" template="namespace/modulename/account/navigation.phtml" /> </reference> </modulename_index_index>
<modulename_index_index> <reference name="customer_account_navigation"> <action method="insert"><type>simple</type><block>customer/account_navigation</block><template>namespace/modulename/account/navigation.phtml</template></action> </reference> <modulename_index_index>
These methods have not worked. To be honest I didn't expect it to but the way I have read the posts is that I need to apply the code from the phtml file which I am overriding into my module, followed by the equivalent file path held in its default module.
How do I go about making adjustments
Pages viewed to try and resolve issue