beforeRemove Event

The ‘beforeRemove’ event is triggered when an item is about to be removed from the cart. It passes a single parameter of the Item about to be removed, which can be modified.

If a callback for the event returns false, the item will not be removed.

// simple callback example
evoShop.bind( 'beforeRemove' , function( item ){
  console.log( item.get('name') + " was removed from the cart" ); 
});

Sample for confim delete

evoShop.bind( 'beforeRemove' , function( item ){
  console.log( item.get('name') + " was removed from the cart" ); 
  var result = confirm("Delete item?");
  if (result) {
	    return true;
  }else{
  		return false;
  }
});