M221629P Home Summer High end Skull Limited Series POLO Shirt
${function() {
const variantData = data.variant || {"id":"6a30ad15-ec38-43b6-94e8-724e559b7b5c","product_id":"3e379ed7-8bb4-4873-8013-db24f07a3c7b","title":"S-\u9ed1\u8272","weight_unit":"kg","inventory_quantity":50,"sku":"M221629165-S-\u9ed1\u8272-A0012214","barcode":"","position":1,"option1":"S","option2":"\u9ed1\u8272","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/118071d1c1ac7ce6e9718097f5bd888b.jpg","path":"118071d1c1ac7ce6e9718097f5bd888b.jpg","width":570,"height":760,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":39,"min_quantity":1}],"weight":"0.4","compare_at_price":"0","price":"39","retail_price":"0","available":true,"url":"\/products\/m221629p-home-summer-high-end-skull-limited-series-polo-shirt?variant=6a30ad15-ec38-43b6-94e8-724e559b7b5c","available_quantity":50,"options":[{"name":"\u5c3a\u5bf8","value":"S"},{"name":"\u989c\u8272","value":"\u9ed1\u8272"}],"off_ratio":0,"flashsale_info":[],"sales":6};
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":"6a30ad15-ec38-43b6-94e8-724e559b7b5c","product_id":"3e379ed7-8bb4-4873-8013-db24f07a3c7b","title":"S-\u9ed1\u8272","weight_unit":"kg","inventory_quantity":50,"sku":"M221629165-S-\u9ed1\u8272-A0012214","barcode":"","position":1,"option1":"S","option2":"\u9ed1\u8272","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/118071d1c1ac7ce6e9718097f5bd888b.jpg","path":"118071d1c1ac7ce6e9718097f5bd888b.jpg","width":570,"height":760,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":39,"min_quantity":1}],"weight":"0.4","compare_at_price":"0","price":"39","retail_price":"0","available":true,"url":"\/products\/m221629p-home-summer-high-end-skull-limited-series-polo-shirt?variant=6a30ad15-ec38-43b6-94e8-724e559b7b5c","available_quantity":50,"options":[{"name":"\u5c3a\u5bf8","value":"S"},{"name":"\u989c\u8272","value":"\u9ed1\u8272"}],"off_ratio":0,"flashsale_info":[],"sales":6};
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 `
`;
}()}