Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How do you create a grouped product of simple products via SOAP API? 
 
latheesan
Jr. Member
 
Total Posts:  27
Joined:  2011-07-04
 

Hi,

I can create “simple” products in magento via the SOAP API based on the documentation here:
http://www.magentocommerce.com/api/soap/catalog/catalogProduct/catalog_product.create.html

How do you then create a “grouped” products in magento via SOAP API and assign existing “simple” products to this grouped products, via the SOAP API?

I am using magento 1.7.x CE.

Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
latheesan
Jr. Member
 
Total Posts:  27
Joined:  2011-07-04
 

I think I found a way to do it through models (rather than the API).

This code creates the product: http://pastebin.com/2L9snp4Z

The above code successfully generates a grouped product, assigns the sub-products under it.

However, when you go to view the product, it looks like this: http://i.imgur.com/2BVshN2.png

However, if I go to the magento backend, edit the product and save OR go into re-index all “Product Prices” - then the product looks normal (something that you can add to cart) as shown here -> http://i.imgur.com/cZCHAm1.png

Any idea why this is happening?
Have I missed a step in creating the grouped product manually via model?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top