Return to AspDotNetStorefront.com

Go Back   AspDotNetStorefront Community | ASP.NET eCommerce Shoppingcart Software > Products > AspDotNetStorefront Multi-Store
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old   
WelspunUSA {Offline}
Member
 
Join Date: Oct 2009
Posts: 42
Default Checkout Masterpages - 03-12-2010

I am unable to apply master pages (that work) to these pages:
  • CheckoutPayment.aspx
  • CheckoutShipping.aspx
  • CheckoutReview.aspx
  • Checkout1.aspx

Any help would be appreciated! As the strings and CSS and masterpage elements are not working.
Reply With Quote
  #2  
Old   
tpmorgsls {Offline}
Junior Member
 
Join Date: Oct 2009
Posts: 21
Default 03-12-2010

Quote:
Originally Posted by WelspunUSA View Post
I am unable to apply master pages (that work) to these pages:
  • CheckoutPayment.aspx
  • CheckoutShipping.aspx
  • CheckoutReview.aspx
  • Checkout1.aspx

Any help would be appreciated! As the strings and CSS and masterpage elements are not working.
For what it's worth, these work perfectly fine in my version of MultiStore. I would ensure that the correct template is called in the @page directive:

MasterPageFile="~/App_Templates/YOURSKINNAMEHERE/template.master". It's possible you have an earlier beta than I do, but these work fine out of the box.
Reply With Quote
  #3  
Old   
Rob {Offline}
Senior Member
 
Join Date: Aug 2004
Posts: 3,042
Default 03-12-2010

Master Page Skins are coming in v9 (monday)...don't even bother trying until then.

RE: multi-store (that beta is a v9 beta so that is why multi-store already has MP skins)...

release of v9 monday...
__________________
AspDotNetStorefront
Shopping Cart
Reply With Quote
  #4  
Old   
WelspunUSA {Offline}
Member
 
Join Date: Oct 2009
Posts: 42
Default 03-18-2010

Well I found a solution by attaching the masterpage on PreInit:

HTML Code:
protected override void OnPreInit(EventArgs e)
        {
            base.OnPreInit(e);
            Page.MasterPageFile = "~/App_Templates/Skin_" + SkinID.ToString() + "/template_nosides.master";
        }
Then just making sure the CSS calls are running off the root in the masterpage attached CSS correctly.
Reply With Quote
  #5  
Old   
John Morrison {Offline}
Junior Member
 
Join Date: Sep 2008
Posts: 8
Default MasterPage specification in aspx with out modification of CodeBehind - 05-04-2010

For what it is worth, rather then having to specify in each masterpage file in the directive as well as the code behind, we added this little mod to the skinbase.cs: replacing the original:
C#/VB.NET Code:
                    this.MasterPageFile "~/App_Templates/" SkinDirectory "/" m_TemplateName;
                    
this.Theme PageTheme
With this:

C#/VB.NET Code:
// If this.MasterPageFile is not the out of the box skin_1/template.master then the develper said what one he/she wants to use. so dont override it .. ever..
                
if (String.IsNullOrEmpty(this.MasterPageFile) || this.MasterPageFile.ToLower() == "~/app_templates/skin_1/template.master" || IsMobile)
                {
                    
this.MasterPageFile "~/App_Templates/" SkinDirectory "/" m_TemplateName;
                    
this.Theme PageTheme;
                }
                else
                {
                    
String[] masterPageFile this.MasterPageFile.Split('/');
                    
m_TemplateName masterPageFile[masterPageFile.Length-1];
                    
this.Theme masterPageFile[masterPageFile.Length 2];
                } 
This way if you have taken the time to specify the MaterPageFile="~/App_Templates/Skin_99/MyCustomTemplate.master" the skin base will honor it.

The only side effect is that you can only do DYNAMIC template switching when the MasterPageFile= Directive is set to what aspdnsf uses out of the box "~/App_Templates/Skin_1/template.master"
__________________
Morrison Consulting
Check out our AspDotNetStorefront Add-Ons
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
vBulletin Style by: vBskincenter.com
Copyright © 2008, AspDotNetStorefront. All rights reserved.