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

Thread: SP1 and AppConfig DefaultSkindID Not Working?

  1. #1
    dayhawk is offline Member
    Join Date
    May 2009
    Posts
    76

    Default SP1 and AppConfig DefaultSkindID Not Working?

    We have applied SP1 to 9.0.1.3, and somehow the default skin has reverted to 1. We have been using SkinId=2.

    When specifying it explicity (?skindid=2), it works. But it defaults to skindid=1. AppConfig: DefaultSkinID is set to 2.

    I'd be thankful for any hints or tips.
    Last edited by dayhawk; 12-20-2010 at 11:11 AM. Reason: "...:D..." became a smiley face.
    MSx 9.2, SQL Server 2005, Windows 2008 R2 Web 64-Bit

  2. #2
    data77 is offline Member
    Join Date
    Oct 2010
    Posts
    75

    Default

    well, skin is cookie based. But you also have this line
    private int m_SkinID = 1;
    under this App_Code/SkinBase.cs
    namespace AspDotNetStorefront
    {
    public class SkinBase : System.Web.UI.Page

    I hope the aspdnsf team will bring more light if it doesn't help
    Eat my code!
    Multistore V 9 sp1
    Best Hosting for your storefront Business in 2011

    http://fasoservice.com
    world wide directory submission
    http://Nanalist.com
    Burkina24 Media news in Burkina Faso
    http://burkina24.com

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

    Default

    If you're on ML not MS. Try these changes in {root}/App_code/SkinBase.cs file:

    In OnPreInit():

    from line 393:
    Code:
       m_SkinID = AppLogic.GetStoreSkinID(StoreID);
    to:
    Code:
     if (Store.StoreCount > 1)
    {
       m_SkinID = AppLogic.GetStoreSkinID(StoreID);
    }
    else
    {
       m_SkinID = AppLogic.AppConfigNativeInt("DefaultSkinID");
    }

  4. #4
    dayhawk is offline Member
    Join Date
    May 2009
    Posts
    76

    Default

    Alfred,

    The fix didn't work. Another aspect I noticed is:

    when I'm signed in with my admin account, the site loads skinid=2;

    when I'm signed out, the site loads skinid=1.

    Maybe I'm missing something?
    MSx 9.2, SQL Server 2005, Windows 2008 R2 Web 64-Bit

  5. #5
    Richnyc30 is offline Senior Member
    Join Date
    Mar 2009
    Posts
    340

    Default Cookies and forcing a skin ID

    I keep getting skin2 when I open my site. I tried to use ?skinid=1 when bringing up the site and I get www.xxx.xxx/?skinid=1 with the slash.
    What is the name of the cookie and how can I get the default back to skinid=1 on my computer?

    Richard
    Multi-store 9.0.1.3