【 TOPPP】【Pre sale, expected on March 30th】6863- Spring and summer new knitted cardigan top men's jacket
${function() {
const variantData = data.variant || {"id":"604f728e-30fb-4c70-941d-ec46c396d6c5","product_id":"0c7875ee-358b-4009-a08c-99c553563b83","title":"blue-M","weight_unit":"kg","inventory_quantity":10,"sku":"6863-00210-blue-M-A0013016","barcode":"","position":1,"option1":"blue","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/255fd1e5927afcc6462409b690a34ade.jpg","path":"255fd1e5927afcc6462409b690a34ade.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":49,"min_quantity":1}],"weight":"0.4","compare_at_price":"0","price":"49","retail_price":"0","available":true,"url":"\/products\/toppp-pre-sale-expected-on-march-30th-6863-spring-and-summer-new-knitted-cardigan-top-mens-jacket?variant=604f728e-30fb-4c70-941d-ec46c396d6c5","available_quantity":10,"options":[{"name":"colour","value":"blue"},{"name":"size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":15};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
${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":"604f728e-30fb-4c70-941d-ec46c396d6c5","product_id":"0c7875ee-358b-4009-a08c-99c553563b83","title":"blue-M","weight_unit":"kg","inventory_quantity":10,"sku":"6863-00210-blue-M-A0013016","barcode":"","position":1,"option1":"blue","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/255fd1e5927afcc6462409b690a34ade.jpg","path":"255fd1e5927afcc6462409b690a34ade.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":49,"min_quantity":1}],"weight":"0.4","compare_at_price":"0","price":"49","retail_price":"0","available":true,"url":"\/products\/toppp-pre-sale-expected-on-march-30th-6863-spring-and-summer-new-knitted-cardigan-top-mens-jacket?variant=604f728e-30fb-4c70-941d-ec46c396d6c5","available_quantity":10,"options":[{"name":"colour","value":"blue"},{"name":"size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":15};
return `
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${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 `
`;
}()}