【 TOPPP 】W125022- Spring and summer new women's contrasting elastic long sleeved top
${function() {
const variantData = data.variant || {"id":"a3cf993e-eba4-448b-8709-047d3eb5e146","product_id":"2a478855-c1d9-4033-89c2-3f7cc89888d3","title":"black-XS","weight_unit":"kg","inventory_quantity":20,"sku":"W125022170-black-XS-A0013008","barcode":"","position":1,"option1":"black","option2":"XS","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/368a636e7db5fe0a26f5b4eb1f999550.jpg","path":"368a636e7db5fe0a26f5b4eb1f999550.jpg","width":1280,"height":1707,"alt":"","aspect_ratio":0.7498535442296427},"wholesale_price":[{"price":41,"min_quantity":1}],"weight":"0.4","compare_at_price":"0","price":"41","retail_price":"0","available":true,"url":"\/products\/toppp-w125022-spring-and-summer-new-womens-contrasting-elastic-long-sleeved-top?variant=a3cf993e-eba4-448b-8709-047d3eb5e146","available_quantity":20,"options":[{"name":"colour","value":"black"},{"name":"size","value":"XS"}],"off_ratio":0,"flashsale_info":[],"sales":3};
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":"a3cf993e-eba4-448b-8709-047d3eb5e146","product_id":"2a478855-c1d9-4033-89c2-3f7cc89888d3","title":"black-XS","weight_unit":"kg","inventory_quantity":20,"sku":"W125022170-black-XS-A0013008","barcode":"","position":1,"option1":"black","option2":"XS","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/368a636e7db5fe0a26f5b4eb1f999550.jpg","path":"368a636e7db5fe0a26f5b4eb1f999550.jpg","width":1280,"height":1707,"alt":"","aspect_ratio":0.7498535442296427},"wholesale_price":[{"price":41,"min_quantity":1}],"weight":"0.4","compare_at_price":"0","price":"41","retail_price":"0","available":true,"url":"\/products\/toppp-w125022-spring-and-summer-new-womens-contrasting-elastic-long-sleeved-top?variant=a3cf993e-eba4-448b-8709-047d3eb5e146","available_quantity":20,"options":[{"name":"colour","value":"black"},{"name":"size","value":"XS"}],"off_ratio":0,"flashsale_info":[],"sales":3};
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 `
`;
}()}