Undefined index error

If you see the following error after clicking Import in Step 5 in Total Import PRO or in Step 4 of CSV Import PRO/XML Import PRO, you have a custom field modification to the addProduct or editProduct functions inside the admin's model/catalog/product.php file.

Notice: Undefined index: custom_field in /home/name/public_html/admin/model/catalog/product.php on line 4

(Note: the custom_field name will change depending on field added with a custom modification)

If the field is added via vqmod, the error message will look like so:

Notice: Undefined index: custom_field in /home/name/public_html/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 4

Custom fields are added to the OpenCart core via direct modification or vqmod by 3rd party modules. With the sheer amount of 3rd party modules in the OpenCart market place, we cannot foresee which modules you will install on how they will modify the core OpenCart code. Therefore, our tools are only guaranteed to work with the OpenCart core fields. 

By default, Total Import PRO will be unable to update this product field, but the error should not affect the rest of the product fields unless their code is modified in the addProduct and editProduct functions. If you want to remove the error, you will need to remove the modification if it is made directly to the OpenCart admin/model/catalog/product.php file. If the field is added by a vqmod xml file, you can simply delete the file adding this field. 

If undefined index is a core OpenCart product field; please leave a ticket in our helpdesk as this is not a common error.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Powered by Zendesk