French Terry stof kopen? (2024)

'; html += ''; html += '

'; $.each(product.custom, function(index, value) { html += '

'; var required = ''; if (value.required == true) { required = ' *'; } switch (value.type) { case 'text': html += ''; html += ''; break; case 'textarea': html += ''; html += ''; break; case 'multipleselect': html += ''; html += ''; break; case 'select': html += ''; html += ''; break; case 'checkbox': html += ''; $.each(value.values, function(childindex, childvalue) { var price = shopnow_formatOptionPrice(childvalue, data); html += '

'; html += ''; html += ''; html += '

'; html += '

'; }); break; case 'radio': html += ''; $.each(value.values, function(childindex, childvalue) { var price = shopnow_formatOptionPrice(childvalue, data); html += '

'; html += ''; html += ''; html += '

'; html += '

'; }); break; case 'date': html += ''; html += '

'; html += '

'; html += ''; html += ''; html += ''; html += '

'; html += '

'; break; } html += '

'; html += '

'; }); html += '

'; } else { html += '

'; } html += ''; html += '

'; return html; } function shopnow_getCartPricesHTML(data, dataProduct) { var product = data.product; var shop = data.shop; var html = ''; html += '

'; if (dataProduct.price.price_old) { html += '

'; html += ''; if (data.shop.b2b == true) { html += '' + dataProduct.price.price_old_excl_money; if (shop.settings.legal.mode == 'strict') { html += ' ' + data.shop.settings.legal.uvpHTML }; html += ' '; html += '' + dataProduct.price.price_excl_money + ' '; } else { html += '' + dataProduct.price.price_old_incl_money; if (shop.settings.legal.mode == 'strict') { html += ' ' + data.shop.settings.legal.uvpHTML }; html += ' '; html += '' + dataProduct.price.price_incl_money + ' '; } html += ''; if (data.shop.b2b == true) { html += 'Excl. btw'; } else { html += 'Incl. btw'; } html += ''; html += '

'; } else { html += ''; if (data.shop.b2b == true) { html += dataProduct.price.price_excl_money; } else { html += dataProduct.price.price_incl_money; } html += ''; html += ' '; if (data.shop.b2b == true) { html += 'Excl. btw'; } else { html += 'Incl. btw'; } html += ''; } if (shop.settings.legal.mode == 'strict') { html += '
Excl. Shipping costs ';} html += '

'; return html; } function shopnow_formatOptionPrice(value, data) { var price = ''; if (value.percentage == true) { if (value.price > 0) { price = ' (+' + value.price + '%)'; } else if (value.price < 0) { price = ' (' + value.price + '%)'; } } else { if (value.price > 0) { price = ' (+' + shopnow_formatPrice(value.price, data) + ')'; } else if (value.price < 0) { price = ' (' + shopnow_formatPrice(value.price, data) + ')'; } } return price; } function shopnow_formatPrice(value, data, convert) { convert = typeof convert !== 'undefined' ? convert : true; var product = data.product; var shop = data.shop; if (convert == true) { value = shopnow_convertCurrency(data, value); } return data.shop.currency2.symbol + '' + value.formatMoney(2, ',', '.'); } function shopnow_convertCurrency(data, value) { if (!isNaN(data.customPriceConversion - 0) && data.customPriceConversion != null) { value = (value / data.customPriceConversion); } return value; } function shopnow_updateForm(data, dataProduct, cartAtts, changeObj) { var product = data.product; var shop = data.shop; var currentVariant = $(cartAtts.popupSelector + ' .popup-product-variants'); if (currentVariant.length > 0) { if (data.shop.b2b == true) { var oldPrice = data.product.variants[currentVariant.val()].price.price_old_excl; var currentPrice = data.product.variants[currentVariant.val()].price.price_excl; } else { var oldPrice = dataProduct.variants[currentVariant.val()].price.price_old_incl; var currentPrice = dataProduct.variants[currentVariant.val()].price.price_incl; } } else { if (data.shop.b2b == true) { var oldPrice = dataProduct.price.price_old_excl; var currentPrice = dataProduct.price.price_excl; } else { var oldPrice = dataProduct.price.price_old_incl; var currentPrice = dataProduct.price.price_incl; } } if (oldPrice != false) { oldPrice = shopnow_convertCurrency(data, oldPrice); } currentPrice = shopnow_convertCurrency(data, currentPrice); var optionPriceTotal = 0; var addValue = 0; $(cartAtts.popupSelector + ' .product-configure-custom .product-configure-custom-option').each(function() { $(this).find('input[type="checkbox"]:checked').each(function() { addValue = shopnow_getPriceFromText(data, $(this).parent().children('label[for="' + $(this).attr('id') + '"]').html()); if (!isNaN(addValue) && addValue != null) { optionPriceTotal += addValue; } }); $(this).find('input[type="radio"]:checked').each(function() { addValue = shopnow_getPriceFromText(data, $(this).parent().children('label[for="' + $(this).attr('id') + '"]').html()); if (!isNaN(addValue) && addValue != null) { optionPriceTotal += addValue; } }); $(this).find('select option:selected').each(function() { addValue = shopnow_getPriceFromText(data, $(this).html()); if (!isNaN(addValue) && addValue != null) { optionPriceTotal += addValue; } }); }) if (oldPrice != false) { oldPrice = shopnow_formatPrice(oldPrice + optionPriceTotal, data, false); if (shop.settings.legal.mode == 'strict') { oldPrice += ' ' + shop.settings.legal.uvpHTML }; } currentPrice = shopnow_formatPrice(currentPrice + optionPriceTotal, data, false); if (currentVariant.length > 0) { $(cartAtts.popupSelector + ' a.add-to-cart').attr('data-id', currentVariant.val()); $(cartAtts.popupSelector + ' #product_configure_form').attr('action', shop.domains.normal + cartAtts.addToCartUrlPrefix + currentVariant.val() + '/'); } if (oldPrice == false) { $(cartAtts.popupSelector + ' .pricing .price').html('' + currentPrice + ''); $(cartAtts.popupSelector + ' .pricing .price').addClass('price-offer'); } else { $(cartAtts.popupSelector + ' .pricing .price').html('' + oldPrice + ' ' + currentPrice + ''); $(cartAtts.popupSelector + ' .pricing .price').addClass('price-offer'); } var stock = false; if (currentVariant.length > 0) { if (data.product.variants[currentVariant.val()].stock.available == true) { stock = true; } } else { if (data.product.stock.available == true) { stock = true; } } if (stock == true) { $(cartAtts.popupSelector + ' .quantity').fadeIn('fast'); $(cartAtts.popupSelector + ' a.add-to-cart').fadeIn('fast'); $(cartAtts.popupSelector + ' .out-of-stock').fadeOut('fast'); } else { $(cartAtts.popupSelector + ' .quantity').fadeOut('fast'); $(cartAtts.popupSelector + ' a.add-to-cart').fadeOut('fast'); $(cartAtts.popupSelector + ' .out-of-stock').fadeIn('fast'); } } function shopnow_getPriceFromText(data, val) { if (val.search(data.shop.currency2.symbol) == -1 || val.lastIndexOf(data.shop.currency2.symbol) < 0 || val.indexOf(data.shop.currency2.symbol) < 0) { return null; } val = val.substring(val.lastIndexOf(data.shop.currency2.symbol) + 1); val = val.replace(/[^0-9-]/g, ''); valInt = val.substring(0, val.length - 2); valDecimals = val.substring(val.length - 2); val = valInt + '.' + valDecimals; val = parseFloat(val); return val; } if (Number.prototype.formatMoney == undefined) { Number.prototype.formatMoney = function(c, d, t) { var n = this, c = isNaN(c = Math.abs(c)) ? 2 : c, d = d == undefined ? "." : d, t = t == undefined ? "," : t, s = n < 0 ? "-" : "", i = parseInt(n = Math.abs(+n || 0).toFixed(c)) + "", j = (j = i.length) > 3 ? j % 3 : 0; return s + (j ? i.substr(0, j) + t : "") + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + t) + (c ? d + Math.abs(n - i).toFixed(c).slice(2) : ""); }; }; if (typeof ObjectLength != 'function') { function ObjectLength(object) { var length = 0; for (var key in object) { if (object.hasOwnProperty(key)) { ++length; } } return length; }; } if ($.fn.serializeObject == undefined) { $.fn.serializeObject = function() { var o = {}; var a = this.serializeArray(); $.each(a, function() { if (o[this.name]) { if (!o[this.name].push) { o[this.name] = [o[this.name]]; } o[this.name].push(this.value || ''); } else { o[this.name] = this.value || ''; } }); return o; }; };

French Terry stof kopen? (2024)

References

Top Articles
Latest Posts
Recommended Articles
Article information

Author: Dr. Pierre Goyette

Last Updated:

Views: 5430

Rating: 5 / 5 (70 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Dr. Pierre Goyette

Birthday: 1998-01-29

Address: Apt. 611 3357 Yong Plain, West Audra, IL 70053

Phone: +5819954278378

Job: Construction Director

Hobby: Embroidery, Creative writing, Shopping, Driving, Stand-up comedy, Coffee roasting, Scrapbooking

Introduction: My name is Dr. Pierre Goyette, I am a enchanting, powerful, jolly, rich, graceful, colorful, zany person who loves writing and wants to share my knowledge and understanding with you.