HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/carrot.komma.pro/wwwroot/js/shop/shop.js
var ShoppingCart={init:function(){},addProductToShoppingcart:function(t,o){console.log(o);Ajax.post("/addProductToShoppingcart",{productableId:t,itemType:o,amount:10},function(t){window.location=t.response})},removeItemFromShoppingcart:function(t,o){Ajax.post("/removeItemFromShoppingcart",{productableId:t,itemType:o},function(t){window.location=t.response})},setItemAmountInShoppingcart:function(t,o){o>0?Ajax.post("/setItemAmountInShoppingcart",{itemId:t,amount:o},function(t){window.location=t.response}):this.removeItemFromShoppingcart(t)},updateCartButtonCounter:function(){var t=$(".shoppingcartItemList ul li").length;$(".shoppingCartButton span.shoppingCartButtonCounter").html(t)}};ShoppingCart.init();