Custom field for sort order in products table

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
shubele
Ensign (ENS)
Ensign (ENS)
Posts: 3
Joined: Mon Mar 10, 2014 1:59 pm

Custom field for sort order in products table

Post by shubele » Wed Mar 12, 2014 10:02 am

Hi,

I've been playing around with Ablecommerce for a few days, so I don't know much about it. If I add a nullable field called "DisplayOrder" to ac_Products, how can I tie that into the Product class so I can edit and update that value?


Thanks!

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

Re: Custom field for sort order in products table

Post by jmestep » Thu Mar 13, 2014 5:01 am

It would be better to not add a new field to the products table, but to use a new table or a template field or product custom field so you won't run into a possible problem with an upgrade in the future. You can use one of the existing product fields if you are not using them all. For example, we had a client use the manufacturer field and had a nightly routine where it updated the field with new rankings.
If you are trying to tweak the order products display in when a customer first comes to a category page, you can re-order the products in the admin.
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

shubele
Ensign (ENS)
Ensign (ENS)
Posts: 3
Joined: Mon Mar 10, 2014 1:59 pm

Re: Custom field for sort order in products table

Post by shubele » Thu Mar 20, 2014 9:53 am

Hi jmestep,

What's the difference between a template field and a product custom field?



Thanks!

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

Re: Custom field for sort order in products table

Post by jmestep » Fri Mar 21, 2014 5:05 am

A template field has an interface in the admin- you create a template, add the fields you want, apply the template to the product on the edit product page.
A product custom field has no interface and you have to create the input box and code to save the custom field entry yourself on the edit product page.
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

Post Reply