${function() {
const variantData = data.variant || {"id":"c8e62794-b480-4c45-a6eb-7de04f21350b","product_id":"6898bea4-6f14-4bbb-bcd0-0e216ae2059d","title":"","weight_unit":"kg","inventory_quantity":997,"sku":"SO33M101","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":140,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"140","retail_price":"0","available":true,"url":"\/products\/mission-to-pluto-h17q?variant=c8e62794-b480-4c45-a6eb-7de04f21350b","available_quantity":997,"options":[],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = false;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Voeg toe aan winkelkar
Nu kopen
Product was niet op voorraad.
Product is niet beschikbaar.
${function() {
const minInventory = parseInt('3');
const maxInventory = parseInt('9');
const randomInventory = Math.round(Math.random() * (maxInventory - minInventory)) + minInventory;
const customText = "Er zijn nog maar {stock} stuks op voorraad!".replace(/\{stock\}/g, '' + randomInventory + ' ');
const barWidth = (randomInventory / maxInventory) * 100 + '%';
return `
`;
}()}
${function(){
const variantData = data.variant || {"id":"c8e62794-b480-4c45-a6eb-7de04f21350b","product_id":"6898bea4-6f14-4bbb-bcd0-0e216ae2059d","title":"","weight_unit":"kg","inventory_quantity":997,"sku":"SO33M101","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":140,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"140","retail_price":"0","available":true,"url":"\/products\/mission-to-pluto-h17q?variant=c8e62794-b480-4c45-a6eb-7de04f21350b","available_quantity":997,"options":[],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
`
}()}
Rembours, tevreden betaling
7 dagen gratis retourneren om welke reden dan ook
Luxe geschenkverpakking, Zwitserse importfabriek
6 luxe merken, meer dan 500 stijlen, allemaal tegen betaalbare prijzen!
${function() {
const minDays = parseInt('3');
const maxDays = parseInt('6');
const customText = "Geschatte levering: {min_date} - {max_date}";
const minDate = new Date(Date.now() + (minDays * 86400000));
const maxDate = new Date(Date.now() + (maxDays * 86400000));
const formatDate = (minDate.getFullYear() == maxDate.getFullYear() && minDate.getFullYear() == new Date().getFullYear())
? new Intl.DateTimeFormat('en', { month: 'short', day: '2-digit' })
: new Intl.DateTimeFormat('en', { month: 'short', day: '2-digit', year: 'numeric' });
const tipText = customText.replace(/\{min_date\}/g, '' + formatDate.format(minDate) + ' ')
.replace(/\{max_date\}/g, '' + formatDate.format(maxDate) + ' ');
return `
`;
}()}