【 TOPPP】M624221- Early Spring Men's New Pants
${function() {
const variantData = data.variant || {"id":"d736d5f3-f766-4a0b-8791-86aeb5ca89f4","product_id":"901fe727-0259-48bf-adb5-1b0372f0bda6","title":"black-M","weight_unit":"kg","inventory_quantity":20,"sku":"M624221220-black-M-A0011514","barcode":"","position":1,"option1":"black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/85fa707a678e9370ecb905504e0db4cd.jpg","path":"85fa707a678e9370ecb905504e0db4cd.jpg","width":1440,"height":1800,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":52,"min_quantity":1}],"weight":"0.6","compare_at_price":"0","price":"52","retail_price":"0","available":true,"url":"\/products\/toppp-m624221-early-spring-mens-new-pants?variant=d736d5f3-f766-4a0b-8791-86aeb5ca89f4","available_quantity":20,"options":[{"name":"colour","value":"black"},{"name":"size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":14};
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":"d736d5f3-f766-4a0b-8791-86aeb5ca89f4","product_id":"901fe727-0259-48bf-adb5-1b0372f0bda6","title":"black-M","weight_unit":"kg","inventory_quantity":20,"sku":"M624221220-black-M-A0011514","barcode":"","position":1,"option1":"black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/85fa707a678e9370ecb905504e0db4cd.jpg","path":"85fa707a678e9370ecb905504e0db4cd.jpg","width":1440,"height":1800,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":52,"min_quantity":1}],"weight":"0.6","compare_at_price":"0","price":"52","retail_price":"0","available":true,"url":"\/products\/toppp-m624221-early-spring-mens-new-pants?variant=d736d5f3-f766-4a0b-8791-86aeb5ca89f4","available_quantity":20,"options":[{"name":"colour","value":"black"},{"name":"size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":14};
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 `
`;
}()}