【 TOPPP】W324237- Early spring new women's wool knitted jacket
${function() {
const variantData = data.variant || {"id":"63f16caf-962f-41e1-9c26-78213083a9ca","product_id":"9ac7b282-2a94-4165-b97f-478845dbdb40","title":"gray-S","weight_unit":"kg","inventory_quantity":4,"sku":"W324237270-gray-S-A0011498","barcode":"","position":1,"option1":"gray","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/16e4e49f117a0bd46a4b23652eeb3731.jpg","path":"16e4e49f117a0bd46a4b23652eeb3731.jpg","width":1080,"height":810,"alt":"","aspect_ratio":1.3333333333333333},"wholesale_price":[{"price":59,"min_quantity":1}],"weight":"0.6","compare_at_price":"0","price":"59","retail_price":"0","available":true,"url":"\/products\/toppp-w324237-early-spring-new-womens-wool-knitted-jacket?variant=63f16caf-962f-41e1-9c26-78213083a9ca","available_quantity":4,"options":[{"name":"colour","value":"gray"},{"name":"size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":11};
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":"63f16caf-962f-41e1-9c26-78213083a9ca","product_id":"9ac7b282-2a94-4165-b97f-478845dbdb40","title":"gray-S","weight_unit":"kg","inventory_quantity":4,"sku":"W324237270-gray-S-A0011498","barcode":"","position":1,"option1":"gray","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/16e4e49f117a0bd46a4b23652eeb3731.jpg","path":"16e4e49f117a0bd46a4b23652eeb3731.jpg","width":1080,"height":810,"alt":"","aspect_ratio":1.3333333333333333},"wholesale_price":[{"price":59,"min_quantity":1}],"weight":"0.6","compare_at_price":"0","price":"59","retail_price":"0","available":true,"url":"\/products\/toppp-w324237-early-spring-new-womens-wool-knitted-jacket?variant=63f16caf-962f-41e1-9c26-78213083a9ca","available_quantity":4,"options":[{"name":"colour","value":"gray"},{"name":"size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":11};
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 `
`;
}()}