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: Product page load specific skin - showproduct.aspx.cs

  1. #1
    ami is offline Junior Member
    Join Date
    Feb 2009
    Posts
    17

    Default How can I load multiple skins on Product pages?- showproduct.aspx.cs

    Hi guys,
    Ok, I know how to load "one" template for each product in showproduct.aspx.cs

    example:

    if (CommonLogic.QueryStringUSInt("ProductID") == 20)
    {

    SetTemplate("template_wedding.ascx");
    }


    But I can't seem to get different products to load different template pages. For example
    I want all the products in Category1 to load: template1.ascx
    and all the products in Category2 to load: template2.ascx

    Changing:

    if (CommonLogic.QueryStringUSInt("ProductID") == 20)
    to
    if (CommonLogic.QueryStringUSInt("CategoryID") == 1)

    doesnt do it.

    Can anyone steer me in the right direction?
    Last edited by ami; 11-03-2009 at 03:15 PM. Reason: ambiguous

  2. #2
    Jao is offline Senior Member
    Join Date
    Oct 2008
    Posts
    1,132

    Default

    Well, if your template switching is based on category. You'd rather use the default Template switching of the store. Set the AppConfig: TemplateSwitching.Enabled to true, then on the Category section of the Product Management page, click on the Extension Data, you should see the Use Skin Template field.

  3. #3
    ami is offline Junior Member
    Join Date
    Feb 2009
    Posts
    17

    Default Tried the same thing

    Thanks Jao,
    I did that, but for some reason my product pages do not inherit the previous skin. Perhaps there is an issue with my showcategory or showproduct page storing cookies properly.

  4. #4
    Jao is offline Senior Member
    Join Date
    Oct 2008
    Posts
    1,132

    Default

    Please try clearing out the browser's cookies, considering that the skinning is cookied. See if that resolves the issue...