Hello,

I create a product (tangible subproduct) and after I use the "subproduct attributes" tab to add attribut.
When it's done, subproducts seem be not created, I don't see it in the content list (?q=admin/content/node) but on my product page it alright, I see the subproducts list with the "add to cart" box.
If I select one and click on "add to cart" I have this error:

    * warning: Invalid argument supplied for foreach() in /hsphere/local/home/alexrpau/fencingforum.com/modules/ec_live_subproducts/ec_live_subproducts.module on line 625.
    * warning: Invalid argument supplied for foreach() in /hsphere/local/home/alexrpau/fencingforum.com/modules/ec_live_subproducts/ec_live_subproducts.module on line 1050.
    * warning: Invalid argument supplied for foreach() in /hsphere/local/home/alexrpau/fencingforum.com/modules/ec_live_subproducts/ec_live_subproducts.module on line 625.
    * warning: Invalid argument supplied for foreach() in /hsphere/local/home/alexrpau/fencingforum.com/modules/ec_live_subproducts/ec_live_subproducts.module on line 1050.

But the subproduct have been correctly add to cart and after that it appear in the content list. If do this operation again I have no problem.

Any idea ?

Comments

brmassa’s picture

Component: Miscellaneous » Code
Assigned: Unassigned » brmassa

bob,

thanks for reporting:

1* one of the greatest features about EC Live Subproducts over the original Subproducts module is that is does NOT create all possible combinations at "subproduct attributes" tab. its good since its very CPU demanding and takes very long time to create all possibilities. If your product has many attributes, it can simply stop PHP execution!

2*about the error: hmmm i really dont know why it happened. i ask for more information: OS, MySQL, PHP and Drupal versions. Do you use the original subproducts? Well, im gonna take a depper look into the code to see if i find something.

anything else, just post here and i will be glad to help

best regards to all in france,

massa

Bob445’s picture

Thanks for your help !

I know this avantage, that why I use this module.

My host is Ixwebhosting, it use PHP 4.3.11 and MySQL 4.1.20.
I use Drupal 5.1 and EC Live Subproducts 5.x-2.05.

This error is very strange because after added to cart each attribute one time, the system work well...

brmassa’s picture

Status: Active » Postponed (maintainer needs more info)

Bob,

i couldnt reproduce your error. i installed the module several times over and over i i never got this error.
can you report exactly what you did, if you remember?

regards,

massa

Bob445’s picture

Ok I upload and enable the module.
I created variation and then 3 attributes.
I created a product (tangible subproduct), after click on submit I select my 3 attributes in the "subproduct attributes" tab.

After these operation, I can see only the parent product on the content page (admin/content/node).
If I try to add to cart one subproduct I get my SQL error but it added to my cart. Then this subproduct appear on the content page, but only this one. For others I have to add to cart one time.

With ecommerce I use sale module to have a closin date and event module to display products on my calendar.

brmassa’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)