Re: Dynamic Price Updater

Originally Posted by
perkiekat
Has anyone found the solution to this error:
PHP Warning: Variable passed to each() is not an array or object in /home/xxxxxx/public_html/includes/classes/dynamic_price_updater.php on line 198
Line 198 reads like this:
while (list($option, $value) = each($this->_shoppingCart->contents[$this->_post['products_id']]['attributes'])) {
Any suggestions or a fix would greatly be appreciated.
Thanks
Around this entire block (and the reset before it) check to see if this piece of data truly is an array, i.e.
if (is_array($this->_shoppingCart->contents[$this->_post['products_id']]['attributes'])) {
reset ...
while ...
...
}
Scott C Wilson, That Software Guy, Plugin Moderator
Contributions: Quantity Discounts, Better Together, SMS on Sale, Gift Wrap at Checkout, and more.
Bookmarks