Please forgive me for troubling you again, but I can not add a description of the goods in the "Orders" instead of "Model"
1.png (19.92 KiB) Viewed 2236 times
I added a
admin/view/template/fat/order_form.tpl this
Code: Select all
<td class="right"><?php echo $product['description']; ?></td>
instead of
Code: Select all
<td class="right"><?php echo $product['model']; ?></td>
in /admin/controller/sale/order.php I added this:
Code: Select all
'description' => html_entity_decode($product['description']),
here:
Code: Select all
$this->data['products'][] = array(
'order_product_id' => $product['order_product_id'],
'product_id' => $product['product_id'],
'name' => $product['name'],
'model' => $product['model'],
I have long sought to enter a new sql query
Tried to add
Code: Select all
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "order_product op LEFT JOIN " . DB_PREFIX . "product_description pd ON (op.product_id = pd.product_id) WHERE op.order_id = '" . (int)$order_id . "' AND pd.language_id = '" . (int)$order_query->row['language_id'] . "'");
instead of
Code: Select all
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "order_product WHERE order_id = '" . (int)$order_id . "'");
in /admin/model/sale/order.php (public function getOrderProducts($order_id) {)
but now
Notice: Undefined variable: order_query in .../admin/model/sale/order.php on line 297Notice: Trying to get property of non-object in .../admin/model/sale/order.php on line 297
What am I doing wrong?