RobertSpread / spreadcart

simple plugin to display a cart for the spreadshop everywhere on your domain
1 stars 1 forks source link

added state handler callback for client use #22

Closed jtlapp closed 8 years ago

jtlapp commented 8 years ago

Just a simple change. There is now a stateHandler config var that optionally takes a function to be called whenever the first item is added to the cart or the last is removed. When the first item is added, the function receives a URL to the checkout page. This allows the hosting site to provide a checkout link outside of our shopping cart. You can see it in operation at http://Jopodia.com