Page 1 of 1

Maximize Use of Options Header Text or First Option Default

Posted: Sun Jul 18, 2010 2:25 pm
by Kalamazoo
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

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

Posted: Mon Jul 19, 2010 4:56 am
by mazhar
Read following thread about how to handle upgrades of customized websites.
viewtopic.php?f=47&t=10082