This is a DNN theme / skin object for use with Hotcakes Commerce. It utilizes the Hotcakes Server-Side API to obtain the current customer's cart line item count and display it.
Styling can be added to HotcakesCartItemCount.ascx utilizing CssClass or inline styling.
We hope to add a build script to the project soon to auto-generate a
Private Assembly package for easy installation within DNN. Until then,
only one folder needs to be manually created and two files copied over
to the DNN instance file/folder structure.
- Within DNN instance, create a folder named HotcakesCartItemCount within ~/DesktopModules.
Copy two files over
- Copy HotcakesCartItemCount.ascx from this project to the new folder just created above within DNN.
- Copy HotcakesCartItemCount.dll from this project (/bin folder) to ~/bin within DNN.
Registering within DNN theme/skin
- Be sure to register the theme/skin object at the top of desired ASCX theme files:
<%@ Register TagPrefix="hcc" TagName="CartItemCount" Src="~/DesktopModules/HotcakesCartItemCount/HotcakesCartItemCount.ascx" %>
- Utilize the following code within the desired ASCX theme/skin files:
<hcc:CartItemCount id="hccCartItemCount" runat="server" />