Stumped - Swatch option name font, color

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
William M
Commander (CMDR)
Commander (CMDR)
Posts: 150
Joined: Sat Feb 14, 2009 9:40 am
Contact:

Stumped - Swatch option name font, color

Post by William M » Fri Apr 03, 2009 12:59 pm

I've found just about everything else... just can't find this. I'd like to change the color and beef it up a bit.

So... is it in a CSS or ?

Thanks in advance.

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

Re: Stumped - Swatch option name font, color

Post by jmestep » Fri Apr 03, 2009 1:54 pm

You will probably need to add a style to the option name in the App_Code/ProductHelper.cs

// CREATE A LABEL FOR THE ATTRIBUTE
phOptions.Controls.Add(new LiteralControl("<tr><th class=\"rowHeader\"" + (option.ShowThumbnails ? " valign=\"top\"" : string.Empty) + "><add span style here>" + option.Name + ":</th>"));
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

JimFriend
Ensign (ENS)
Ensign (ENS)
Posts: 10
Joined: Thu Jul 05, 2007 1:31 pm
Contact:

Re: Stumped - Swatch option name font, color

Post by JimFriend » Mon Apr 06, 2009 4:27 pm

Judy, thanks for the start on this one. In order to adjust the style on the actual Options that the customer selects I needed to add a custom class to the TD right below the line you referenced. Here's what I ended up with:

Code: Select all

phOptions.Controls.Add(new LiteralControl("<td align=\"left\" class=\"OptionsSelected\">"));
Jim Friend
Web Developer
Image

Post Reply