0.3.0 • Published 8 years ago

caleres-virtual-cart v0.3.0

Weekly downloads
6
License
ISC
Repository
github
Last release
8 years ago

Caleres Virtual Cart

This is going to define the global variable for virtual cart. Here's an example file:

window.setCartCount     = require('./../../../scripts/bundles/_components/set-cart-count.js');

window.virtualCartSizeValidation = function(){
	/* CUSTOMIZE THIS FUNCTION TO DO WHATEVER YOU'D LIKE WHEN A SIZE ISN'T SELECTED AND SOMEONE IS TRYING TO ADD AN ITEM --- */
};

window.virtualCartItemAdded = function(){
	/* USE THIS FOR TRACING PIXELS, ETC. --- */
};

window.virtualCartModal = require('caleres-virtual-cart');

virtualCartModal is the object that's created by this module, but you'll need a few other things.

Other things:

  • set-cart-count component - This will update the cart count. Create an independent component that will update the item count in the header
  • virtualCartSizeValidation - This fires whenever you do not have a size selected.
  • virtualCartItemAdded - This is the script to handle items added to the cart

Nothing will break if you don't define these, but it won't work very well. :)

0.3.0

8 years ago

0.2.6

10 years ago

0.2.5

10 years ago

0.2.4

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago