Page 1 of 1

Gift Certificate, Back end bug

Posted: Tue Apr 14, 2015 4:46 pm
by jfer3
hi all,
I am using Opencart 2.0.1.1.

When a customer processes an order all is fine.
However when I go to the back end to review the order, I see an error under the products tab.

When i go to:
admin > sales > orders > Click on the order to edit (Order has only gift voucher)

I get an error on the second tab : Products

Error message:

Notice: Undefined variable: order_products in:

/home/stage31/public_html/jeepapparel/admin/view/template/sale/order_form.tpl on line 240
Notice: Undefined variable: order_products in /home/stage31/public_html/jeepapparel/admin/view/template/sale/order_form.tpl on line 242
Warning: Invalid argument supplied for foreach() in /home/stage31/public_html/jeepapparel/admin/view/template/sale/order_form.tpl on line 242

I know this is not a product I am wondering why this is happening ?

thanks in advance for your help.

Re: Gift Certificate, Back end bug

Posted: Tue Apr 14, 2015 6:29 pm
by Elune
Without knowing more, there is no way to tell with what you submitted.
Are you using 3rd party extensions such as vQmods that modify the order edit/view system?
Did this just suddenly start up one day or did it happen after a modification?

Re: Gift Certificate, Back end bug

Posted: Tue Apr 14, 2015 7:24 pm
by jfer3
Hi Elune,
thank you for the reply.

No nothing installed or edits done to the admin back end system.

There is vQmod installed.
There are modifications done to the template view files, but nothing on the order end.

The error only happens when ordering a Gift Certificate, all other orders are just fine.

Please let me know if you need any additional information..

Re: Gift Certificate, Back end bug

Posted: Fri Apr 17, 2015 5:51 am
by jfer3
Hi All,
finally managed to fix the problem.

It looks like there was a bit of code missing from a file, not sure if this has been reported as a bug or not. But the OpenCart general instal 2.0.1.1 does have this bug.

If anyone is interested in a fix, I've posted up the solution on our documentation blog:

http://docs.3rddesign.com/admin-area-or ... t-vouchers

Re: Gift Certificate, Back end bug

Posted: Fri Apr 17, 2015 7:19 pm
by gilaraujo
I can replicate this.

Thank you for posting!