addItem (cart)

Description

Add new item to a cart. Requires to provide URL to search result item as parameter.

Usage

var flbSessionCart = new Funnelback.SessionCart({collection: 'my-collection'});
flbSessionCart.addItem('http://item-url');

Examples

<button class="btn btn-link" onclick="flbSessionCart.addItem('http://item-url')">
  Add to cart
</button>

<script>
var flbSessionCart = new Funnelback.SessionCart({collection: 'my-collection'});
</script>