Plugin Development

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
sweeperq
Commodore (COMO)
Commodore (COMO)
Posts: 497
Joined: Tue Jan 03, 2006 2:45 pm

Plugin Development

Post by sweeperq » Wed Aug 11, 2010 7:58 am

When people do plugins for their stores, are you utilizing the Custom Fields table, or are you creating new fields/tables in the database?

User avatar
igavemybest
Captain (CAPT)
Captain (CAPT)
Posts: 388
Joined: Sun Apr 06, 2008 5:47 pm

Re: Plugin Development

Post by igavemybest » Wed Aug 11, 2010 8:01 am

It depends whats going on. For a lot of the things I do I create new tables.

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

Re: Plugin Development

Post by mazhar » Thu Aug 12, 2010 3:35 am

You can go with either way. In case of CustomFields you already have dataaccess support in API so you can use it to save/load data to/from this table. In order to create Dataaccess code for custom tables have a look a this thread viewtopic.php?f=47&t=9530

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Plugin Development

Post by jmestep » Thu Aug 12, 2010 7:00 am

For the products, we go with template fields a lot. There is already a user interface and you can apply more than one template to a product. For example, on one site we have 4 templates on products and have created a conlib to pull the content for just one template so we can separate them into different positions on the product page.
We have used it for a compare product feature-if you go to the following site and check some products, then click compare, most of the fields on the next screen are template fields.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

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

Re: Plugin Development

Post by AbleMods » Thu Aug 12, 2010 9:47 am

Template Fields if you want the info by product and a user interface already built. But the fields have the be the same for every product assigned to the same template.

Product Custom Fields if you want different fields for different products. I use this alot because I already have my own interface written to easily manage custom fields on the edit-product page.

There is a third, Custom Fields table which is a generic foreign-key relations table that works for any two tables that unique integer key Id fields. I've never used it and it has no user interface associated with it.
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