LMODO Pet Ramp Stairs
${function() {
const variantData = data.variant || {"id":"e4af58d8-326a-4a12-bd52-ae77b8516c01","product_id":"61f73ee8-4e6d-47b2-8d30-7ef135f762c8","title":"Yellow, large sponge.","weight_unit":"kg","inventory_quantity":99,"sku":"5506148633873","barcode":"","position":2,"option1":"Yellow, large sponge.","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f7d569191b5892677e36a0dbff040d08.jpeg","path":"f7d569191b5892677e36a0dbff040d08.jpeg","width":1200,"height":1200,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":53.9,"min_quantity":1}],"weight":"0","compare_at_price":"135","price":"53.9","retail_price":"135","available":true,"url":"\/products\/lmodo-pet-ramp-stairs?variant=e4af58d8-326a-4a12-bd52-ae77b8516c01","available_quantity":99,"options":[{"name":"Color","value":"Yellow, large sponge."}],"off_ratio":60,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
people are viewing this right now
${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 `
`;
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"e4af58d8-326a-4a12-bd52-ae77b8516c01","product_id":"61f73ee8-4e6d-47b2-8d30-7ef135f762c8","title":"Yellow, large sponge.","weight_unit":"kg","inventory_quantity":99,"sku":"5506148633873","barcode":"","position":2,"option1":"Yellow, large sponge.","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f7d569191b5892677e36a0dbff040d08.jpeg","path":"f7d569191b5892677e36a0dbff040d08.jpeg","width":1200,"height":1200,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":53.9,"min_quantity":1}],"weight":"0","compare_at_price":"135","price":"53.9","retail_price":"135","available":true,"url":"\/products\/lmodo-pet-ramp-stairs?variant=e4af58d8-326a-4a12-bd52-ae77b8516c01","available_quantity":99,"options":[{"name":"Color","value":"Yellow, large sponge."}],"off_ratio":60,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${function() {
const minDays = parseInt('3');
const maxDays = parseInt('7');
const customText = "Estimated Delivery\uff1a{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 `
${tipText}
`;
}()}