Page 1 of 1
Adding OptionChoice - do I need source code?
Posted: Sun Feb 17, 2008 10:18 pm
by satori
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?
Posted: Sun Feb 17, 2008 10:26 pm
by AbleMods
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?
Posted: Sun Feb 17, 2008 10:36 pm
by satori
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.
Posted: Sun Feb 17, 2008 10:42 pm
by AbleMods
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.
Posted: Sun Feb 17, 2008 10:44 pm
by satori
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?
Posted: Sun Feb 17, 2008 10:52 pm
by AbleMods
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.
Posted: Sun Feb 17, 2008 10:54 pm
by satori
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!