PetMassive Car Kennel Small Dog Car Mat
${function() {
const variantData = data.variant || {"id":"ccbcf1c3-c8b7-46e3-a455-6b4ef957d730","product_id":"f4736fbc-9326-4084-be2f-be9305d87996","title":"Single seat, loose green, suitable for front and rear seats","weight_unit":"kg","inventory_quantity":28,"sku":"5538100400347","barcode":"","position":1,"option1":"Single seat, loose green, suitable for front and rear seats","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/933782447f47b6610df1102d3401491e.jpeg","path":"933782447f47b6610df1102d3401491e.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":41.8,"min_quantity":1}],"weight":"0","compare_at_price":"51.8","price":"41.8","retail_price":"51.8","available":true,"url":"\/products\/petmassive-car-kennel-small-dog-car-mat?variant=ccbcf1c3-c8b7-46e3-a455-6b4ef957d730","available_quantity":28,"options":[{"name":"Color ","value":"Single seat, loose green, suitable for front and rear seats"}],"off_ratio":19,"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":"ccbcf1c3-c8b7-46e3-a455-6b4ef957d730","product_id":"f4736fbc-9326-4084-be2f-be9305d87996","title":"Single seat, loose green, suitable for front and rear seats","weight_unit":"kg","inventory_quantity":28,"sku":"5538100400347","barcode":"","position":1,"option1":"Single seat, loose green, suitable for front and rear seats","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/933782447f47b6610df1102d3401491e.jpeg","path":"933782447f47b6610df1102d3401491e.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":41.8,"min_quantity":1}],"weight":"0","compare_at_price":"51.8","price":"41.8","retail_price":"51.8","available":true,"url":"\/products\/petmassive-car-kennel-small-dog-car-mat?variant=ccbcf1c3-c8b7-46e3-a455-6b4ef957d730","available_quantity":28,"options":[{"name":"Color ","value":"Single seat, loose green, suitable for front and rear seats"}],"off_ratio":19,"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}
`;
}()}