how do I get product_id on an Add

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
RickSilver
Lieutenant (LT)
Lieutenant (LT)
Posts: 66
Joined: Mon Jun 22, 2009 5:49 pm

how do I get product_id on an Add

Post by RickSilver » Wed Mar 23, 2011 7:37 pm

How do I get the product_id when adding a new product. Does _Product.Save() return it?

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: how do I get product_id on an Add

Post by AbleMods » Thu Mar 24, 2011 11:44 am

After _Product.Save() is called, the _Product.ProductId value is populated with the identity value. Just reference _Product.ProductId
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

Post Reply