Adding & Updating Products Programmatically

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
mnicol
Ensign (ENS)
Ensign (ENS)
Posts: 2
Joined: Mon Aug 10, 2009 8:22 am

Adding & Updating Products Programmatically

Post by mnicol » Mon Aug 10, 2009 9:16 am

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!

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Adding & Updating Products Programmatically

Post by mazhar » Mon Aug 10, 2009 9:27 am

Please read following thread
viewtopic.php?f=61&t=10179

mnicol
Ensign (ENS)
Ensign (ENS)
Posts: 2
Joined: Mon Aug 10, 2009 8:22 am

Re: Adding & Updating Products Programmatically

Post by mnicol » Mon Aug 10, 2009 11:18 am

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

Post Reply