Update: Seems like I was messing adding some code from OC v.1.4.9.4 to the /admin/controler/sale/order.php and that was the cause of this: NOTICE: UNDEFINED INDEX messages.rocketero wrote:I replace my /admin/view/template/sale/osc_order-invoice.tpl with yours, and now I get more notices, when I press print shipping invoice or print payment I get all these:
For Print Shipping Invoice, I get now these 3 Notices in the same page:, the url ends on:
/admin/index.php?route=sale/order/osc_invoice&token=3cc546b95faee48ff249719cf5c3384eCode: Select all
Undefined index: history in /home2/MYWEBSITE/public_html/admin/view/template/sale/osc_order_invoice.tpl on line 253
Code: Select all
Notice: Undefined variable: column_sku in /home2/MYWEBSITE/public_html/admin/view/template/sale/osc_order_invoice.tpl on line 189
Code: Select all
Notice: Undefined index: sku in /home2/MYWEBSITE/public_html/admin/view/template/sale/osc_order_invoice.tpl on line 204
for the other button, print invoice, the url ends on:
/admin/index.php?route=sale/order/invoice&token=3cc546b95faee48ff249719cf5c3384e=========================Code: Select all
Notice: Undefined index: order_id in /home2/MYWEBSITE/public_html/admin/controller/sale/order.php on line 928
Update: After taking off this osc_order_invoice.tpl and replacing it by the privious osc_order_invoice.tpl that I had before any changes about this whole issue 'web admin comments', Now the invoices and shipping receipts show fine with no Notices at all. And to be honest I don't even see that did any impact to what I was looking at once I clicked on Sales / Orders in backoffice.
After exploring the cause and adding some $this-> statements to this file, I fixed most everything, except that I keep getting flagged by this statement in your code:
Code: Select all
$order_histories = $this->model_sale_order->getOrderHistory($this->request->get['order_id']);
Code: Select all
Notice: Undefined index: order_id in /home2/MYWEBSITE/public_html/admin/controller/sale/order.php on line 962