【 TOPPP】【Pre sale Product】【June 25th shipment 】8235- Model's new men's casual pants
${function() {
const variantData = data.variant || {"id":"397daaca-cc96-4120-a83e-30f6aaef450b","product_id":"d76693dc-403e-4b91-8505-b9c6a982b185","title":"black-M","weight_unit":"kg","inventory_quantity":3,"sku":"8235-00190-black-M-A0014878","barcode":"","position":1,"option1":"black","option2":"M","option3":"","note":"","image":null,"wholesale_price":[{"price":42.8,"min_quantity":1}],"weight":"0.5","compare_at_price":"0","price":"42.8","retail_price":"0","available":true,"url":"\/products\/toppp-pre-sale-product-june-25th-shipment-8235-models-new-mens-casual-pants?variant=397daaca-cc96-4120-a83e-30f6aaef450b","available_quantity":3,"options":[{"name":"colour","value":"black"},{"name":"size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":12};
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":"397daaca-cc96-4120-a83e-30f6aaef450b","product_id":"d76693dc-403e-4b91-8505-b9c6a982b185","title":"black-M","weight_unit":"kg","inventory_quantity":3,"sku":"8235-00190-black-M-A0014878","barcode":"","position":1,"option1":"black","option2":"M","option3":"","note":"","image":null,"wholesale_price":[{"price":42.8,"min_quantity":1}],"weight":"0.5","compare_at_price":"0","price":"42.8","retail_price":"0","available":true,"url":"\/products\/toppp-pre-sale-product-june-25th-shipment-8235-models-new-mens-casual-pants?variant=397daaca-cc96-4120-a83e-30f6aaef450b","available_quantity":3,"options":[{"name":"colour","value":"black"},{"name":"size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":12};
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 `
`;
}()}