Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 2 of 2

Thread: Credit Card order

  1. #1
    lkkol is offline Member
    Join Date
    Mar 2009
    Posts
    54

    Default Credit Card order

    is there a configuration setting, or some other way to update the order of credit cards in the the drop down list on the checkout page?

  2. #2
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    Those are displayed in alphabetical order. Changing that would require a source code mod.

    Around line 1923 in Address.cs:
    Code:
                        dbconn.Open();
                        using (IDataReader rsCard = DB.GetRS("select * from creditcardtype  with (NOLOCK)  where Accepted=1 order by CardType", dbconn))
                        {
    You could also do something cheesy with the CC type names to 'fake' a different alphabetical order, like:

    1 - VISA
    2 - AMEX
    ...etc