evoShop.has( item )

arguments:

  • item: item to check if in the cart.
  • returns:

  • The item that is in the cart, if the item provided is already there.
  • False, if the item is not in the cart.
  • var myItem = evoShop.add({ name: "Poster" , price: 4 });
    
    evoShop.has( myItem ); // true
    
    myItem.remove();
    
    evoShop.has( myItem ); // false