Quote Originally Posted by orange_juice View Post
Hallo,

After installing this great module version 1.8.1 with cj loader-1.6, in zen cart-1.3.9c, I keep receiving the following warning:

Code:
PHP Warning:  Invalid argument supplied for foreach() in includes/classes/order.php on line 778
The relevant code is the following:

PHP Code:
// kuroi: trigger and details for attribute low stock email
} elseif ($attribute_stock_left <= STOCK_REORDER_LEVEL) {
$this->email_low_stock .=  'ID# ' zen_get_prid($this->products[$i]['id']) . ', ' $this->products[$i]['model'] . ', ' $this->products[$i]['name'] . ', ';

 
//the following is line 778:

foreach($this->products[$i]['attributes'] as $attributes){
$this->email_low_stock .= $attributes['option'] . ': ' $attributes['value'] . ', ';
}
$this->email_low_stock .= 'Stock: ' $attribute_stock_left "\n\n";
}
}

I would appreciate your help.

Kind regards,
orange_juice
Which file is this in. In my version of FEC181, it isn't there in the includes/classes/order.php file and that is the only file I can find that foreach statement that you show above.
Recheck that the file is the current one.