【 TOPPP】【Pre sale Product】【July 10th 】0978- Popular sports and leisure women's pants
${function() {
const variantData = data.variant || {"id":"79130679-265a-432c-b94b-e03722616df4","product_id":"ec46f4cd-3b70-4df1-bdae-252414c861d1","title":"white-S","weight_unit":"kg","inventory_quantity":10,"sku":"0978-00170-white-S-A0015341","barcode":"","position":1,"option1":"white","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/06ef7e8bd3e1b2bf6815aed00b84dd5a.jpg","path":"06ef7e8bd3e1b2bf6815aed00b84dd5a.jpg","width":1040,"height":1560,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":40.8,"min_quantity":1}],"weight":"0.4","compare_at_price":"0","price":"40.8","retail_price":"0","available":true,"url":"\/products\/toppp-pre-sale-product-july-10th-0978-popular-sports-and-leisure-womens-pants?variant=79130679-265a-432c-b94b-e03722616df4","available_quantity":10,"options":[{"name":"colour","value":"white"},{"name":"size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":5};
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":"79130679-265a-432c-b94b-e03722616df4","product_id":"ec46f4cd-3b70-4df1-bdae-252414c861d1","title":"white-S","weight_unit":"kg","inventory_quantity":10,"sku":"0978-00170-white-S-A0015341","barcode":"","position":1,"option1":"white","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/06ef7e8bd3e1b2bf6815aed00b84dd5a.jpg","path":"06ef7e8bd3e1b2bf6815aed00b84dd5a.jpg","width":1040,"height":1560,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":40.8,"min_quantity":1}],"weight":"0.4","compare_at_price":"0","price":"40.8","retail_price":"0","available":true,"url":"\/products\/toppp-pre-sale-product-july-10th-0978-popular-sports-and-leisure-womens-pants?variant=79130679-265a-432c-b94b-e03722616df4","available_quantity":10,"options":[{"name":"colour","value":"white"},{"name":"size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":5};
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 `
`;
}()}