Page 1 of 1

Adding & Updating Products Programmatically

Posted: Mon Aug 10, 2009 9:16 am
by mnicol
From reviewing the DataPort FAQs at the links below, it looks like there is no way to automate the processes for updating and adding new products through DataPort. However, I have a requirement from my client to get key catalog data from an external source. DataPort appears to be able to do what I need it to do, but I do not believe that the client will wish to manually run DataPort every day.

viewtopic.php?f=61&t=11102&p=47473&hili ... lly#p47473
http://wiki.ablecommerce.com/index.php/ ... utility.3F

So, is it possible to add and update products programmatically? I've begun to dig into the CommerceBuilder API a bit and was able to easily add a new product to the products table through the Product class. However, the product does not show up in my store. (It's in the ac_Products table, and it's modeled after a product I imported successfully through DataPort.) I assume I'm missing something, but I'm not sure where to go from here.

Any pointers for working with importing and modifying products in an automated way would be greatly appreciated!

Re: Adding & Updating Products Programmatically

Posted: Mon Aug 10, 2009 9:27 am
by mazhar
Please read following thread
viewtopic.php?f=61&t=10179

Re: Adding & Updating Products Programmatically

Posted: Mon Aug 10, 2009 11:18 am
by mnicol
Mazhar,

Thanks for the info! Your "SKU Based Product Import" and "CSV import" samples are great. It turns out that all I neglected to do before was to programmatically assign a category to my test product. After I did that, it displayed in my store exactly as I'd expect. Thanks for the quick response!

Matt