You could try something like this one. The only thing still missing is, to display it on the Admin Invoice as well, that '
$currloc' Variable is new to me, and I wasted hours, without any success, to make it show up on the Invoice as well.
But make sure FIRST, that the 'ANCHOR' lines in the OC Files correspond with those 'shown' in the Extension, one single 'difference' woud disable Function.
Someone, familiar with coding OC, would probably be able, to add the Routine to the Admin Invoice as well ...

, but it's getting hard lately, because most 1.5.x Coders obviously already passed away, or then just lost their spirit ....
Good Luck!
Ernie
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<id><![CDATA[Admin View Order Product Location]]></id>
<version><![CDATA[OC 1.5.6.5 - OC2 Themes]]></version>
<vqmver><![CDATA[2.6.1]]></vqmver>
<author><![CDATA[Ernie - IP_CAM]]></author>
<email><![CDATA[webmaster@opencart.li]]></email>
<link><![CDATA[http://www.opencart.li]]></link>
<file name="admin/controller/sale/order.php">
<operation error="log">
<search position="before"><![CDATA[$this->data['products'][] = array(]]></search>
<add><![CDATA[
$this->load->model('catalog/product');
$this->model_catalog_product->getProduct($product['product_id']);
$currloc = $this->model_catalog_product->getProduct($product['product_id']);
]]></add>
</operation>
<operation error="log">
<search position="after"><![CDATA['model' => $product['model'],]]></search>
<add><![CDATA['location' => $currloc['location'],]]></add>
</operation>
</file>
<file name="admin/view/template/sale/order_info.tpl">
<operation error="log">
<search position="after"><![CDATA[<td class="center"><?php echo $column_model; ?></td>]]></search>
<add><![CDATA[<td class="center">Location</td>]]></add>
</operation>
<operation error="log">
<search position="after"><![CDATA[<td class="center"><?php echo $product['model']; ?></td>]]></search>
<add><![CDATA[<td class="center"><?php echo $product['location']; ?></td>]]></add>
</operation>
</file>
</modification>
---
My Solutions, placed in different Sections:
