【 TOPPP 】GF194- Men's casual suit fabric pants
${function() {
const variantData = data.variant || {"id":"139b4181-925c-4934-9f6f-e63bf51dca32","product_id":"5e98480a-e0aa-40dd-8e13-3ab00656710b","title":"khaki-XL","weight_unit":"kg","inventory_quantity":1,"sku":"GF194-00170-khaki-XL-A0018427","barcode":"","position":3,"option1":"khaki","option2":"XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b7102eed1e6b4b820dd0ab3620ffc4a4.jpg","path":"b7102eed1e6b4b820dd0ab3620ffc4a4.jpg","width":1040,"height":1560,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":42.8,"min_quantity":1}],"weight":"0.6","compare_at_price":"0","price":"42.8","retail_price":"0","available":true,"url":"\/products\/toppp-gf194-mens-casual-suit-fabric-pants?variant=139b4181-925c-4934-9f6f-e63bf51dca32","available_quantity":1,"options":[{"name":"colour","value":"khaki"},{"name":"size","value":"XL"}],"off_ratio":0,"flashsale_info":[],"sales":19};
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":"139b4181-925c-4934-9f6f-e63bf51dca32","product_id":"5e98480a-e0aa-40dd-8e13-3ab00656710b","title":"khaki-XL","weight_unit":"kg","inventory_quantity":1,"sku":"GF194-00170-khaki-XL-A0018427","barcode":"","position":3,"option1":"khaki","option2":"XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b7102eed1e6b4b820dd0ab3620ffc4a4.jpg","path":"b7102eed1e6b4b820dd0ab3620ffc4a4.jpg","width":1040,"height":1560,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":42.8,"min_quantity":1}],"weight":"0.6","compare_at_price":"0","price":"42.8","retail_price":"0","available":true,"url":"\/products\/toppp-gf194-mens-casual-suit-fabric-pants?variant=139b4181-925c-4934-9f6f-e63bf51dca32","available_quantity":1,"options":[{"name":"colour","value":"khaki"},{"name":"size","value":"XL"}],"off_ratio":0,"flashsale_info":[],"sales":19};
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 `
`;
}()}