【Pre sale, shipped on November20th 】YG002 # Autumn/Winter New Golf Women's Shoulder Knitted Tank Top
${function() {
const variantData = data.variant || {"id":"64f72b1f-615b-41f2-8756-c4e8b9a7f971","product_id":"a39f314e-c03a-4847-955b-46609b7396c4","title":"black-S","weight_unit":"kg","inventory_quantity":15,"sku":"YG002#260-black-S-A00114157","barcode":"","position":1,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6a2a4540e2197b793a46224c56f48acd.jpg","path":"6a2a4540e2197b793a46224c56f48acd.jpg","width":1280,"height":1280,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":53.8,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"53.8","retail_price":"0","available":true,"url":"\/products\/pre-sale-shipped-on-november20th-yg002-autumn-winter-new-golf-womens-shoulder-knitted-tank-top?variant=64f72b1f-615b-41f2-8756-c4e8b9a7f971","available_quantity":15,"options":[{"name":"colour","value":"black"},{"name":"size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":16};
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":"64f72b1f-615b-41f2-8756-c4e8b9a7f971","product_id":"a39f314e-c03a-4847-955b-46609b7396c4","title":"black-S","weight_unit":"kg","inventory_quantity":15,"sku":"YG002#260-black-S-A00114157","barcode":"","position":1,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6a2a4540e2197b793a46224c56f48acd.jpg","path":"6a2a4540e2197b793a46224c56f48acd.jpg","width":1280,"height":1280,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":53.8,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"53.8","retail_price":"0","available":true,"url":"\/products\/pre-sale-shipped-on-november20th-yg002-autumn-winter-new-golf-womens-shoulder-knitted-tank-top?variant=64f72b1f-615b-41f2-8756-c4e8b9a7f971","available_quantity":15,"options":[{"name":"colour","value":"black"},{"name":"size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":16};
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 `
`;
}()}