Page 1 of 1

MPN field at order

Posted: Mon Apr 19, 2021 8:19 am
by otalialv
Greetings!

It is necessary to implement the MPN column in the orders section (admin/index. php?route=sale/order/info) the point is that I defined the mpn in admin/controller/sale/order.php under $data ['products'][] = array (as 'mpn' => $product ['mpn'], and after this configuration I get this Warning: Undefined array key "mpn" in \admin\controller\sale\order.php on line 987

Tell me what I'm doing wrong?

Thanks!

Re: MPN field at order

Posted: Mon Apr 19, 2021 6:30 pm
by paulfeakins
otalialv wrote:
Mon Apr 19, 2021 8:19 am
Tell me what I'm doing wrong?
Just do it the same way as others are done.

Re: MPN field at order

Posted: Mon Apr 19, 2021 10:02 pm
by straightlight
You'd need to make sure this field is also added in your admin/model/sale/order.php model in the getOrder method.

Re: MPN field at order

Posted: Tue Apr 20, 2021 4:28 am
by otalialv
I'm a numb 🙈

Where should this be defined? Can I ask a example...🙈🙈🙈

Re: MPN field at order

Posted: Tue Apr 20, 2021 9:09 pm
by straightlight
otalialv wrote:
Tue Apr 20, 2021 4:28 am
I'm a numb 🙈

Where should this be defined? Can I ask a example...🙈🙈🙈
You could always create a new service request in the Commercial Support section of the forum to get this done as a custom job.