Plugin Development
Plugin Development
When people do plugins for their stores, are you utilizing the Custom Fields table, or are you creating new fields/tables in the database?
- igavemybest
- Captain (CAPT)
- Posts: 388
- Joined: Sun Apr 06, 2008 5:47 pm
Re: Plugin Development
It depends whats going on. For a lot of the things I do I create new tables.
Re: Plugin Development
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
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Plugin Development
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.
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
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
Re: Plugin Development
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.
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
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