Is there a way to add a custom field that's hidden?

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
macromark
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 30
Joined: Fri Feb 18, 2011 2:39 pm

Is there a way to add a custom field that's hidden?

Post by macromark » Thu Mar 17, 2011 10:00 am

We used custom fields in AC5.5 to track licensing information for certain software products we sold. However, those fields did not display to the customer. In AC7, I'm using product templates to create the fields I need to track but these fields are showing up on the product page. Is there any way to hide them?

User avatar
deverill
Lieutenant (LT)
Lieutenant (LT)
Posts: 64
Joined: Tue Jan 06, 2009 11:58 am
Location: Key West, FL
Contact:

Re: Is there a way to add a custom field that's hidden?

Post by deverill » Thu Mar 17, 2011 10:30 am

Just to get the discussion rolling - there are many here much smarter than I am about this...

Are these licenses for the product in general or are they different licenses for each order/customer?

If it is per-product you can use the ac_ProductCustomFields table. If it is per-order you may need to look at doing something with Order Notes and then turning them off in the store so the customer doesn't see them.
Jim Sewell - Web Programmer
Trusted Tours & Attractions

macromark
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 30
Joined: Fri Feb 18, 2011 2:39 pm

Re: Is there a way to add a custom field that's hidden?

Post by macromark » Thu Mar 17, 2011 1:47 pm

Each software product has a single unique license identifier number (like 254, 255, etc). Based on that number, we generate license codes for our customers (with another program). The customer part we've already figured out. We just don't want the license identifier to display in the product description. It's not the end of the world if we can't fix it... it's just superfluous data that the customer doesn't need to see.

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

Re: Is there a way to add a custom field that's hidden?

Post by AbleMods » Mon Mar 21, 2011 12:44 pm

This is easy to fix.

In the Admin side, select the Website/Content and Layout menu option.

Scroll down to your Show Product 1 scriptlet and click the Edit icon.

Scroll down through the scriptlet code until you see:
[[ConLib:ProductDescription ShowCustomFields="true"]]

Change the "true" to "false" and save it. Now any custom fields from product templates will not be visible on the customer side of the store.

Enjoy :)
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