Displaying Option Swatches in 4 columns

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
dave_reach
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Mon Jan 28, 2008 10:05 am

Displaying Option Swatches in 4 columns

Post by dave_reach » Tue Mar 18, 2008 12:55 am

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.

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

Post by jmestep » Tue Mar 18, 2008 2:57 am

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
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

dave_reach
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Mon Jan 28, 2008 10:05 am

Post by dave_reach » Tue Mar 18, 2008 3:24 am

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

dave_reach
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Mon Jan 28, 2008 10:05 am

Post by dave_reach » Tue Mar 18, 2008 7:53 am

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!

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

Post by jmestep » Tue Mar 18, 2008 10:06 am

Now, if I can remember it when I need it! :)
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