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: Invoking a Skin for a customer level

  1. #1
    cksite is offline Senior Member
    Join Date
    Apr 2006
    Location
    Easthampton Massachusetts
    Posts
    125

    Default Invoking a Skin for a customer level

    I see how to assign topics to a customer level, but is there an easy way to invoke a skin based on customer level?

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

    Default

    There is no easy way to invoke SkinID based on customer level, no. Customer levels are not specific to SkinID so, this requires couple of modifications. First thing to do is, add a field in customer level page in the admin for SkinID or TemplateName (in case, you want to use the built-in AppLogic.GetCurrentEntityTemplateName() method). Then, you can probably add a method in the signin logic which check whether the customer is a member of a customer level or not. If yes, retrieve the skinid stored on that customer level then invoke it via a query string.

    Example algorithm would be:
    Code:
    If (ThisCustomer.CustomerLevel != 0)
    {
           // retrieve the skinid and store it in CLSkinID variable, for example.
    
           If (CLSkinID != "") &&
          {
            Response.Redirect("yoursite.com/default.aspx" + CommonLogic.IIF(CLSkinID  !="", "?SkinID=" + CLSkinID, "")
            ThisCustomer.SkinID = CLSkinID;
           }     
    }