simpleCart(js)

items
Items:
Total:

simpleCart.copy( namespace )

arguments:

  • namespace (string)

returns:

  • new simpleCart object with the given namespace

This function creates and returns a new instance of simpleCart, using the given namespace for storage and classes. This makes it possible to have multiple carts on one page

var anotherCart = simpleCart.copy( "anotherCart" );

This cart will use the namespace “anotherCart” for html classes:

Comments

  1. There are no comments for this entry yet.
Commenting is not available in this channel entry.