Post by faotw » Thu Jul 19, 2012 8:54 pm


I tried to add a new field for customers with vqmod. Everything worked fine until I tried to place an order as a logged in customer.

Here is what works:
Customers not logged in can place orders - new field is available and can be filled or not
Customers can register through checkout - new field is available and can be filled or not
In the back end I can place orders - no problem with new field
In the back end I can see placed orders with the new field - no problem

But when a customer is already logged in or logs in at the checkout the following notice comes along:
Notice: Undefined index: newfield in myDomain/openCartTest/vqmod/vqcache/vq2-catalog_model_checkout_order.php on line 5

I'm using open cart v1.5.3.1

I guess open cart doesn't get the newfield from the customer table but how to implement this? Can anyone help?

Thanks a lot..



Thu Jul 19, 2012 8:45 pm

Post by oscprofessionals » Fri Jul 20, 2012 2:34 am

Thats a Notice.
You can disable(if features are working fine).

In startup.php you have
// Error Reporting

comment this line out.

Team of e-commerce experts.


New member


Mon Jul 16, 2012 12:14 am
Location - Nagpur, India

Post by rph » Fri Jul 20, 2012 2:45 am

No, don't do that. Fix the bug. A simple isset/if-then shorthand should do it. I'm assuming this is on a DB insert so it'd be something like:

Code: Select all

(isset($newfield) ? $this->db->escape($newfield) : '')


Expert Member


Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska
Who is online

Users browsing this forum: No registered users and 7 guests