Page 1 of 1

Displaying Option Swatches in 4 columns

Posted: Tue Mar 18, 2008 12:55 am
by dave_reach
Hi,

I thought I made a post about this last night before I finished work but I can't find head nor tail of it now so i'm not entirely sure if i'm losing my mind or if I was dreaming. :shock: If it was deleted for some reason I apologise for reposting - but I can't think why it would have been deleted.

I'm overhauling my Product display page to display things in a different order. I've got everything I want in the correct position, but the problem I have is some of my products have a large number of variations on an option (eg. Marble Finish), which are displayed as OptionPickers (with the clickable images for each option). The OptionPicker is displayed as two columns - which pushes my page down quite a lot. All I want to do is display in 4 columns, but I can't find anywhere I could achieve this.

I assume it has something to do with this:

Code: Select all

ConLib/Custom/BuyProductDialogue.ascx

//BUILD PRODUCT ATTRIBUTES
_SelectedOptions = ProductHelper.BuildProductOptions(_Product, phOptions);
//BUILD PRODUCT CHOICES
ProductHelper.BuildProductChoices(_Product, phOptions);
//BUILD KIT OPTIONS
_SelectedKitProducts = ProductHelper.BuildKitOptions(_Product, phKitOptions);
I can find where the Option Title is drawn and the OptionPicker is added to the PlaceHolder but not where the items are added to the OptionPicker.

Thanks,
Dave.

Posted: Tue Mar 18, 2008 2:57 am
by jmestep
The code to display the option picker is in App_Code/ProductHelper.cs.
I can't see where it assigns the number of columns for the swatches, so it might depend on the size of your swatches. There are 4 showing on this site:
http://www.attachedtobaby.com/CuddlyWra ... r-P16.aspx

Posted: Tue Mar 18, 2008 3:24 am
by dave_reach
My swatches are easily small enough to fit 4, possibly 5 per row. I have taken a screen shot to show how it looks - Tables and Cells have been highlighted for clarity. I cannot find there the red table/cells are drawn. I think they might be in the compiled code which I don't have access to.

Hmmm! Damn you CuddlyWrap!

http://www.reachdevelopment.co.uk/dave/cent_shot1.jpg

Posted: Tue Mar 18, 2008 7:53 am
by dave_reach
Oh my word. Tech support fixed for me

Admin Panel > Website > Logo Images.

Column and Image Size for swatches are at the bottom. I could claw my own face off, that's how frustrated with myself I am at the amount of time I invested in something so darn simple!

Posted: Tue Mar 18, 2008 10:06 am
by jmestep
Now, if I can remember it when I need it! :)