Add a custom field to ac_ProductVariants

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
joebeazelman
Lieutenant (LT)
Lieutenant (LT)
Posts: 78
Joined: Wed Mar 05, 2008 11:27 am

Add a custom field to ac_ProductVariants

Post by joebeazelman » Sun Oct 05, 2008 1:11 pm

I want to add a "UOM" field to ac_ProductVariants for tracking the Unit of Measure a variant of a product is sold in. I was able to successfully add this field to ac_Products and I am able to edit and display it in the admin area without any issues following the AC7 API Wiki documentation .

I found, however, it was difficult to add this field to the ac_ProductVariants because it was using an ObjectDatasource that fed a DataGrid. There didn't seem to be a way to add a new field to the datasource without modifying the underlying DAL object. The API Wiki, doesn't address my particular need.

I read an older post that mentioned I would have to purchase the license to the source code, but lot has changed in AC7 since then. Is the source code still required to make the modifications I need?

Thanks in advance!

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

Re: Add a custom field to ac_ProductVariants

Post by AbleMods » Sun Oct 05, 2008 7:09 pm

joebeazelman wrote:I read an older post that mentioned I would have to purchase the license to the source code, but lot has changed in AC7 since then. Is the source code still required to make the modifications I need?
Yes. Modifications to the CommerceBuilder API (the DAL) require full source - there is not a custom fields class for ac_ProductVariants.
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