I'm getting the following error when I display a product with choices for available options such as color and size.
Warning: Invalid argument supplied for foreach() in /catalog/includes/classes/pad_base.php on line 387
This is a discussion on help with error in pad_base.php within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; I'm getting the following error when I display a product with choices for available options such as color and size. ...
I'm getting the following error when I display a product with choices for available options such as color and size.
Warning: Invalid argument supplied for foreach() in /catalog/includes/classes/pad_base.php on line 387
Ok, i solved this one thanks to the OS Commerce forums. This a bug in the code that should definitely be addressed in future releases. Here's the problem:
-----------------------------
quoted from Ralphday:
Both pad_single_dropdown.php and pad_single_radioset.php have a line:
CODE
$out.=$this->_draw_out_of_stock_message_js($attributes);
in them. Move that line up above the closing brace (}) right before it in both files.
------------------------------
Once you have this fixed, you will no longer get the pad_base error. But in order to display radio attributes, you need to turn attribute quanitity tracking ON.
Cheers
Dubious
Bookmarks