Webshop Rowy's Rental

Reserveer hier nu uw originele, feestelijke attributen en natuurlijk krijgt u er uitstekende dienstverlening bij.

Winkelwagen

Totaal
404

Oeps, deze pagina bestaat
helaas niet.

Rompslomp homepage
')); var multipleItems = { "1026783630": { 'qty':6 }, "855785409": { 'qty':6 }, "846194843": { 'qty':6 }, "691086087":{ 'qty':6 }, "778932756":{ 'qty':2 } , "1622205079":{ 'qty':9999999 }, "1972978130":{ 'qty':9999999 }, "1953157829":{ 'qty':9999999 } } var firstload = true; $(document).ready(function($) { $(`.winkelwagenContainer`).hide(); if(getCookie('shoppingCart')){ let wagenjson = getCookie('shoppingCart'); let wagen = $.parseJSON(wagenjson); $.each(wagen, function(index, product) { add2cart(product.id,null); }); } if(screen.width < 992 && firstload){ $(`.winkelwagenContainer`).hide(); } }); $(document).on('click','.mobilecart', function (){ $(`.winkelwagenContainer`).show(); }); $(document).on('click', '#bestelbut', function(event) { event.preventDefault(); location.href = 'checkout.php'; }); function setCookie(name,value,days) { var expires = ""; if (days) { var date = new Date(); date.setTime(date.getTime() + (days*24*60*60*1000)); expires = "; expires=" + date.toUTCString(); } document.cookie = name + "=" + (value || "") + expires + "; path=/"; } function getCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } function add2cart(id,elem = null){ if(multipleItems[id]){ if(multipleItems[id]['qty'] == 1){ if(elem != null){ $(elem).attr('disabled', true); } }else{ multipleItems[id]['qty']--; } }else{ if(elem != null){ $(elem).attr('disabled', true); } } shoppingCart.push(products[id]); refreshshoppingcart(); } function parseproductslist(list){ let arr = []; $.each(list.products, function(index, val) { arr[val.id] = val; // console.log(val); }); return arr; } function refreshshoppingcart(){ setCookie(`shoppingCart`,JSON.stringify(shoppingCart)); $(`.winkelwagenContainer`).show(); $(`.itemlinecontainer`).remove(); let totalPrice = 0; $.each(shoppingCart, function(index, product) { console.log(); let price = parseFloat(product.invoice_line.price_with_vat); tr = `
${product.invoice_line.description}
€ ${price.toFixed(2)}
`; totalPrice += price; $(`.cartlist`).append(tr); }); $(`#totalPrice`).text(totalPrice.toFixed(2)); } function removeline(element,productid,itemid){ $(`#but_${productid}`).attr('disabled', false); shoppingCart.splice(itemid, 1); // 2nd parameter means remove one item only refreshshoppingcart(); }