Adding OptionChoice - do I need source code?

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
satori
Lieutenant (LT)
Lieutenant (LT)
Posts: 64
Joined: Mon Jun 26, 2006 1:04 am
Location: Colorado Rockies above Boulder
Contact:

Adding OptionChoice - do I need source code?

Post by satori » Sun Feb 17, 2008 10:18 pm

I'm sooo rusty in programming now, but with a clear head, I can probably figure things out.

I want to add a few fields to the AC_OptionChoices table to add an Option Description, and a URL to a larger Swatch.

Then, I want the Product page to dynamically build a dictionary list styled sweetly to show all the swatches, Swatch names, brief description, and a link to pop-up an image of a larger swatch.

I think I'll need the source, right? And that would be a wait?

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

Post by AbleMods » Sun Feb 17, 2008 10:26 pm

Yep and yep.

But ac_OptionChoices already has a Name field and both an Image and Thumbnail URL fields. Those won't work for you?
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

User avatar
satori
Lieutenant (LT)
Lieutenant (LT)
Posts: 64
Joined: Mon Jun 26, 2006 1:04 am
Location: Colorado Rockies above Boulder
Contact:

Post by satori » Sun Feb 17, 2008 10:36 pm

People are going to want closeups of the swatches and a detailed description. I don't want to handcode all this in the products each time. :)

Here's a sample page:
http://www.attachedtobaby.com/Kozy-Carr ... i-P39.aspx

See under the "Kozy Carrier Prints" that I've included a list of the prints, their names, and a brief description. I'd love to click or hover over the watch to provide a detailed 300x300 pixel view too.

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

Post by AbleMods » Sun Feb 17, 2008 10:42 pm

Back it up a step and modify the routine that renders the choices in the first place. Then you can directly control what is displayed and thus what can happen when it's displayed.
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

User avatar
satori
Lieutenant (LT)
Lieutenant (LT)
Posts: 64
Joined: Mon Jun 26, 2006 1:04 am
Location: Colorado Rockies above Boulder
Contact:

Post by satori » Sun Feb 17, 2008 10:44 pm

Huh? Sorry, it's late. I just want to add two columns to that table, a text field to provide a description of the fabric, and a URL to a large image. I want to enter this when entering my product option choices and have it dynamically render on the product page and be done with it.

Is there an easier way?

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

Post by AbleMods » Sun Feb 17, 2008 10:52 pm

Nope. You're talking about modifying a base data class and a (somewhat complex) user control that handles the option choices displayed.

Option Choices are a part of variants. The user controls and code that display variants and the associated choices is somewhat complex, at least by my standards.
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

User avatar
satori
Lieutenant (LT)
Lieutenant (LT)
Posts: 64
Joined: Mon Jun 26, 2006 1:04 am
Location: Colorado Rockies above Boulder
Contact:

Post by satori » Sun Feb 17, 2008 10:54 pm

I think I can do it rather quickly once the source code is released. I'd basically just copy how they did the other fields. :) I can't wait to really dig into AC and have some fun!

Post Reply