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

Thread: Disable Credit Cards for Customer Level?

  1. #1
    lambrite is offline Senior Member
    Join Date
    Jun 2007
    Posts
    116

    Default Disable Credit Cards for Customer Level?

    I would like to disable credit card payments and electronic check payments for a particular customer level; we only accept POs for this type of customer. Is that possible? I also need to disable PO as a method for all other customer levels (including no customer level).

    If not, is there a way I can reorder the payment types so that PO is first, and possibly select it automatically for all customers in that level?
    Last edited by lambrite; 06-24-2010 at 01:37 PM. Reason: update question

  2. #2
    Alkaline is offline Senior Member
    Join Date
    May 2006
    Posts
    459

    Default

    This can be done with Custom Development.
    Simrun AspDotNetStoreFront Development
    Preferred AspDotnetStorefront Development Partner
    ahsan[@]simrun[.]com
    remove the "[]" for email

    Have a Nice Day

  3. #3
    ASPAlfred is offline Senior Member
    Join Date
    Nov 2007
    Posts
    2,244

    Default

    You can do that in checkoutpayment.aspx.cs under WritePaymentPanels() method, add a condition there which checks if the customer logged in is under a certain level.

    e.g.
    if (ThisCustomer.CustomerLevelID)
    {
    pnlCCPane.Visible = false;
    ctrlPaymentMethod.ShowCREDITCARD = false;
    }
    else
    {
    pnlCCPane.Visible = false;
    ctrlPaymentMethod.ShowCREDITCARD = false;
    }

  4. #4
    lambrite is offline Senior Member
    Join Date
    Jun 2007
    Posts
    116

    Thumbs up

    That worked perfectly, thank you!