Is there a way to do this?
for example if we want to switch the skin for facebook users and offer "facebook only" product packages?
Is there a way to do this?
for example if we want to switch the skin for facebook users and offer "facebook only" product packages?
Yes, I think you could do this although I've not tried it. App_Code/Skinbase.cs is where all the skin and template magic happens and this is the base class for showproduct.aspx which actually does the product page rendering.
If I was doing this, I'd approach it in one of two ways:
1. Use templates rather than skin switching
- Write a facebook template master file
- In showproduct.aspx, detect a facebook product page and call templateoverride() to cause the product page to use the facebook template instead of the standard template.
OR
2. Use skin switching
- Create a new skin
- In showproduct.aspx, detect as above and change the SkinID (a public int within Skinbase.cs) to my new skin for selected pages.
Adam
Webopius.com: ASPDotNetStorefront web development and ecommerce project management
Webopius is now a Sage Pay Approved Partner