Hi
You can change anything related to the HTML and CSS without the source code. It gets more complicated when you want to change the content within the pages because in some cases (not all) the content you see on screen is rendered by an ASPDotNetStorefront control but the code for this control is buried within a dll that you can't change without source code.
Take the cart contents on the shoppingcart.aspx page as an example. If you look at shoppingcart.aspx, you'll see that the cart contents are drawn by a control: <aspdnsfc:ShoppingCartControl ... />
This shopping cart control is contained within the ASPDNSFControls.dll and you can't change it unless you have the source code.
However... there is a trick.
Using class inheritance, you can create your own custom control that is derived from the core ASPDNSF controls and then modify them without having access to the source code. In a way, this is also better than modifying the core source code because it makes future upgrades much more straightforward. Here's an example...
Create a new file called MyCart.cs in the App_Code folder that looks like this:
Code:
using System;
using System.Web;
using System.IO;
using System.Text;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Web.UI.Design;
using System.Web.UI.Design.WebControls;
using System.ComponentModel;
using AspDotNetStorefrontCore;
namespace AspDotNetStorefrontControls
{
public class MyCart : ShoppingCartControl
{
protected override void CreateChildControls()
{
base.CreateChildControls();
Controls.Add(new LiteralControl("This is a custom cart"));
}
}
}
This creates a custom cart control based on the standard shopping cart with one simple addition that adds a 'This is a custom cart' line at the bottom. You can of course change this any way you like.
Now, in shoppingcart.aspx, add the following line into the definitions section at the top:
Code:
<%@ Register TagPrefix="aspdnsfc2" Namespace="AspDotNetStorefrontControls" %>
And change references to 'aspdnsfc:ShoppingCartControl' to 'aspdnsfc2:MyCart'
Now, when you view the shoppingcart page, you'll see you Custom cart being used instead of the standard cart.
Adam