Post by otalialv » Mon Apr 19, 2021 8:19 am

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!

Newbie

Posts

Joined
Thu Mar 11, 2021 1:51 am

Post by paulfeakins » Mon Apr 19, 2021 6:30 pm

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.

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by straightlight » Mon Apr 19, 2021 10:02 pm

You'd need to make sure this field is also added in your admin/model/sale/order.php model in the getOrder method.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by otalialv » Tue Apr 20, 2021 4:28 am

I'm a numb 🙈

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

Newbie

Posts

Joined
Thu Mar 11, 2021 1:51 am

Post by straightlight » Tue Apr 20, 2021 9:09 pm

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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: justint24 and 32 guests