I've enabled "subproducts" within "modules" but how do i make use of them? i can't seem to find any additinal menu options within the menu. any ideas?

Comments

jofinneg’s picture

I'm actually getting the following error in my log with regards to subproducts (drupal 4.7.2):

warning: Invalid argument supplied for foreach() in /www/f/examplesite/htdocs/main/modules/ecommerce/subproducts/subproducts.module on line 1821.

Anyone have any idea what's going on?

chueewowee’s picture

warning: Invalid argument supplied for foreach() in mysite/htdocs/modules/ecommerce/subproducts/subproducts.inc on line 45.

(drupal 4.7.2)

beatnikdude’s picture

Drupal 5.1

@:
admin/ecsettings/subproducts

I get:
"warning: Invalid argument supplied for foreach() in /Library/WebServer/Documents/drupal5_sandbox/sites/all/modules/ecommerce/subproducts/subproducts.module on line 1799."

See:
http://drupal.org/node/119243

webmost’s picture

Me three

And I note with dismay that this question w3as first posted eight months ago and has not been answered yet.

spino’s picture

Sorry, I'm a newbie at drupal, but in subproducts.module at line 1108, there can be a problem if there is only one subproduct or subproduct attribute, so I modified

foreach ($variations as $variation) {
$options = array();
foreach($variation->attributes as $attribute) {
to:
foreach ((array)$variations as $variation) {
$options = array();
foreach((array)$variation->attributes as $attribute) {

Seems to work.