people are viewing this right now
${function() {
const minDays = parseInt('3');
const maxDays = parseInt('7');
const customText = "It's been recommended by 5.9K people on Facebook, Twitter";
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 `
`;
}()}
Free shipping on orders over 50
Free returns within fourteen days
Contact us: service@muthser.com
${function() {
const minInventory = parseInt('10');
const maxInventory = parseInt('50');
const randomInventory = Math.round(Math.random() * (maxInventory - minInventory)) + minInventory;
const customText = "Only {stock} item(s) left in stock!".replace(/\{stock\}/g, '' + randomInventory + '');
const barWidth = (randomInventory / maxInventory) * 100 + '%';
return `
`;
}()}
${function() {
const variantData = data.variant || {"id":"2602bf8a-c399-46fd-81b4-aa7db6fd6eb9","product_id":"e2233138-569a-4a74-8c03-cd8ad19fe88a","title":"Brown","weight_unit":"kg","inventory_quantity":1000,"sku":"Come1653-002-Brown","barcode":"na","position":1,"option1":"Brown","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/506519b6a3ab148f6d6c27470ff88a3d.png","path":"506519b6a3ab148f6d6c27470ff88a3d.png","width":1080,"height":1080,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":99.99,"min_quantity":1}],"weight":"0","compare_at_price":"149.99","price":"99.99","retail_price":"149.99","available":true,"url":"\/products\/deluxe-roller?variant=2602bf8a-c399-46fd-81b4-aa7db6fd6eb9","available_quantity":999999999,"options":[{"name":"Color","value":"Brown"}],"off_ratio":33,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ``
)}
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"2602bf8a-c399-46fd-81b4-aa7db6fd6eb9","product_id":"e2233138-569a-4a74-8c03-cd8ad19fe88a","title":"Brown","weight_unit":"kg","inventory_quantity":1000,"sku":"Come1653-002-Brown","barcode":"na","position":1,"option1":"Brown","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/506519b6a3ab148f6d6c27470ff88a3d.png","path":"506519b6a3ab148f6d6c27470ff88a3d.png","width":1080,"height":1080,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":99.99,"min_quantity":1}],"weight":"0","compare_at_price":"149.99","price":"99.99","retail_price":"149.99","available":true,"url":"\/products\/deluxe-roller?variant=2602bf8a-c399-46fd-81b4-aa7db6fd6eb9","available_quantity":999999999,"options":[{"name":"Color","value":"Brown"}],"off_ratio":33,"flashsale_info":[],"sales":0};
return `
`
}()}