Hi Hennie,
it's just a warning - not an error - so indicates your reporting is set too high -
but to get rid of it try this
change from line 416
if ($params->get('category_addtocart_list',1)) {
$customFieldCheck = 1;
foreach ($product->customfieldsCart as $field) {
if (($field->field_type == "E") || ($field->field_type == "A")) {
$customFieldCheck = 0;
}
}
to
if ($params->get('category_addtocart_list',1)) {
$customFieldCheck = 1;
if($product->customfieldsCart){//added for if check
foreach ($product->customfieldsCart as $field) {
if (($field->field_type == "E") || ($field->field_type == "A")) {
$customFieldCheck = 0;
}
}
}//added for if