6814/0110-006- Spring/Summer New Men's Button Collar Top
${function() {
const variantData = data.variant || {"id":"887c5781-623a-4f44-99fb-4e18ff589944","product_id":"795dac03-9ac8-477f-8114-78d006fae42a","title":"blue-M","weight_unit":"kg","inventory_quantity":2,"sku":"6814-00130-blue-M-A0016144","barcode":"","position":1,"option1":"blue","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8c66054f509b2f192e93657daeda8a07.jpg","path":"8c66054f509b2f192e93657daeda8a07.jpg","width":960,"height":960,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":35,"min_quantity":1}],"weight":"0.4","compare_at_price":"0","price":"35","retail_price":"0","available":true,"url":"\/products\/6814-0110-006-spring-summer-new-mens-button-collar-top?variant=887c5781-623a-4f44-99fb-4e18ff589944","available_quantity":2,"options":[{"name":"colour","value":"blue"},{"name":"size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":9};
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":"887c5781-623a-4f44-99fb-4e18ff589944","product_id":"795dac03-9ac8-477f-8114-78d006fae42a","title":"blue-M","weight_unit":"kg","inventory_quantity":2,"sku":"6814-00130-blue-M-A0016144","barcode":"","position":1,"option1":"blue","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8c66054f509b2f192e93657daeda8a07.jpg","path":"8c66054f509b2f192e93657daeda8a07.jpg","width":960,"height":960,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":35,"min_quantity":1}],"weight":"0.4","compare_at_price":"0","price":"35","retail_price":"0","available":true,"url":"\/products\/6814-0110-006-spring-summer-new-mens-button-collar-top?variant=887c5781-623a-4f44-99fb-4e18ff589944","available_quantity":2,"options":[{"name":"colour","value":"blue"},{"name":"size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":9};
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 `
`;
}()}