Maximize Use of Options Header Text or First Option Default

Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
Post Reply
User avatar
Kalamazoo
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 42
Joined: Wed Apr 01, 2009 6:10 pm

Maximize Use of Options Header Text or First Option Default

Post by Kalamazoo » Sun Jul 18, 2010 2:25 pm

I am in version 7.04. We were looking for a way to use the admin header text for options in a useful and purposeful way. If you enter in a value and leave it, you force a selection, if you do not enter in a value then this automatically selects the top option by default and makes it selected so you don't have to waste so much time of a customer to buy your product (in the right cases....)

just replace this in ProductHelper.cs around line 86

Code: Select all

aspOptions.Items.Add(option.HeaderText);


with

Code: Select all

if (!string.IsNullOrEmpty(option.HeaderText))
                    {
                        aspOptions.Items.Add(option.HeaderText);
                    }
Seems to work like a champ and I hope others will try it and see if it works for you as well. I don't know how to keep changes being made to this file so just document for any upgrade. If anyone else has a better idea that would be great.

Thanks,

Phil Chrisman

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Maximize Use of Options Header Text or First Option Default

Post by mazhar » Mon Jul 19, 2010 4:56 am

Read following thread about how to handle upgrades of customized websites.
viewtopic.php?f=47&t=10082

Post Reply