evoShop.copy( namespace )


  • namespace (string)
  • returns:

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

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

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

    <div class="anotherCart_total"></div>
    <div class="anotherCart_items"></div>