Nozbe


Twitter
  
 
Archive
Minimize
 
July 31, 2010
Add to Technorati Favorites

DotNetNuke Store - MicroCart code
Location: BlogsDave Amphlett's Personal Blog    
Posted by: Dave Amphlett Thu, 13 Nov 2008 20:40:56 GMT
A quick blog for anyone playing with the DNN Store module code - here's a zip of a few files that I'm using for a MicroCart Module.

It's a really small simple little module that can show a tiny cart summary based upon a new template file: MicroCart.htm which can expand the following tokens:
  • [CARTPRODUCTCOUNT]
    - the number of different products in the cart
  • [CARTITEMCOUNT]
    - the total number of items in the cart
  • [CARTTOTALCOST]
    - the total cost (excluding tax) of all items in the cart
  • [CARTTOTALTAX]
    - the total tax cost of all items in the cart (simple calculation on the same basis as the VATPRICE token)
  • [CARTTOTALCOSTINCTAX]
    - the total tax cost of all items in the cart (simple calculation on the same basis as the VATPRICE token)
  • [CARTLINK]
    - a simple (default) link to the proper 'cart' page for this store. Link text is 'View Basket'
  • [CARTLINKSTART]
    - the opening anchor element for the cart link. Used with [CARTLINKEND] you can make whatever you like into the link
  • [CARTLINKEND]
    - the closing anchor elemnt for the cart link. Used with [CARTLINKSTART] you can make whatever you like into the link
here's what it looks like with all the tokens being used in the template:

micro-cart-snap.GIF

You can download the source here:  DaveAmphlett_MicroCart_20081113.zip

Copyright ©2008 Dave Amphlett
Permalink |  Trackback

Your name:
Title:
Comment:
Add Comment   Cancel