Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

caleres-virtual-cart

Package Overview
Dependencies
Maintainers
4
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

caleres-virtual-cart

The functional parts for caleres-virtual-cart

  • 0.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
14
increased by600%
Maintainers
4
Weekly downloads
 
Created
Source

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. :)

Keywords

FAQs

Package last updated on 22 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc