Hello,
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..
Stefan
Thats a Notice.
You can disable(if features are working fine).
In startup.php you have
// Error Reporting
error_reporting(E_ALL);
comment this line out.
You can disable(if features are working fine).
In startup.php you have
// Error Reporting
error_reporting(E_ALL);
comment this line out.
Team of e-commerce experts.
oscprofessionals
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) : '')
-Ryan
Who is online
Users browsing this forum: No registered users and 9 guests