Magento – Account “My Orders history” Exchange columns e.g.. Name change for company

Picture

In the case, should appear that the account is not the name of the addressee of an order in Order History, but e.g.. The shipping company addresses, This is relatively fast, if one knows, in which files must be sought. Here are the instructions:

The file in the folder recent.phtml app / design / frontend /[base or default]/[IhrTemplate]/template / sales / order open. There are two entries, to make this change possible. On the one hand this is the line 45

<th><?php echo $this->__(&#8216;Ship To&#8217;) ?></th>

and the line 56 (each about)

<td><?php echo $_order->getShippingAddress() ? $this->htmlEscape($_order->getShippingAddress()->getName()) : ‘&nbsp;’ ?></td>

Here is first defined, which should be heading in the table. Here, then, &#8216;Ship To’ against &#8216;Company’ exchange. But as I said this would only change the title. This also changes the contents of the column names from the receiver to the receiving company, in the second-mentioned row getName()) against getCompany()) exchange. Thus it is well adapted to the contents of the column.

Picture

This would then change the order summary. If, however, to the point “My orders” click, would also make this change again. Simply take the file history.phtml, located in the same directory and make the same changes. Then upload them back and ready.

Attention: note as always, that relate the changes to all the templates, the access to this base file, if none is defined in the template. Therefore, for safety's sake, to changing the default base files from the / folder in the template folder and change where individual.

Used in Magento 1.4.1.1

Published by Covos

Since 2009 I have been working intensively with Magento. I started with the creation and operation of B2C stores. This was extended through my work in the logistics sector. This resulted first specialized B2E systems. Today I work day-a day with exciting B2C, B2B- and B2E projects and reports in this blog about challenges and give insider tips.

Leave a Reply

Your email address will not be published. Required fields are marked *