Hello!

Once I create the subproducts, those will appear in the product list. (Floding the categories if we have many attributes)
On the subproduct node page the add to cart button does not work.
I need a solution either make the button work or the best would be an option to hide subproducts and only list the Parent.

Any suggestion would be appreciated.
Gabor

Comments

brmassa’s picture

Assigned: Unassigned » brmassa
Category: support » bug

Gabor,

its strange, im gonna investigate and soon i post here a definitive answer.

regards,

massa

vojnar’s picture

Hi,

Ok the temporarely solution for me, and maybe for others would be if I could find the function which inserts the subproduct node into the node table with status=1 after I click on add to cart on the parent node page. Unfortunately I did not find any function in the subproduct.modul nor in the cart.module inserting or updating anything in node table.
Can you tell me where to look for?

Thanks,
Gabor

vojnar’s picture

Issue:
Any time when I used click on the add to cart button the subproduct appeared in the parent category.

So the solution is:
1. In ec_live_subproducts.module
2. Find node_save($newnode);
3. Place this beforehand: $newnode -> status = 0;
This will unpublish the subproduct but you still will be able to add te parent product with the attributes. On the subproduct node the add to cart button did not work anyhow.

I hope this helps, have fun!
Gabor

brmassa’s picture

Status: Active » Fixed

Gabor,

its fixed on eCommerce 4 subproducts.

regards,

massa

Anonymous’s picture

Status: Fixed » Closed (fixed)