【 TOPPP 】W923058- Spring and summer new women's two-piece dress
${function() {
const variantData = data.variant || {"id":"ac5fc515-472f-4f15-af5e-7fea020e6c33","product_id":"3fe1940d-da18-4f36-a6e9-f35ac5a37af0","title":"black-S","weight_unit":"kg","inventory_quantity":20,"sku":"W923058350-black-S-A0013296","barcode":"","position":1,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/496b0b62575ba3bcfc19a8b57981fe86.jpg","path":"496b0b62575ba3bcfc19a8b57981fe86.jpg","width":1080,"height":1350,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":68,"min_quantity":1}],"weight":"0.5","compare_at_price":"0","price":"68","retail_price":"0","available":true,"url":"\/products\/toppp-w923058-spring-and-summer-new-womens-two-piece-dress?variant=ac5fc515-472f-4f15-af5e-7fea020e6c33","available_quantity":20,"options":[{"name":"colour","value":"black"},{"name":"size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":9};
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":"ac5fc515-472f-4f15-af5e-7fea020e6c33","product_id":"3fe1940d-da18-4f36-a6e9-f35ac5a37af0","title":"black-S","weight_unit":"kg","inventory_quantity":20,"sku":"W923058350-black-S-A0013296","barcode":"","position":1,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/496b0b62575ba3bcfc19a8b57981fe86.jpg","path":"496b0b62575ba3bcfc19a8b57981fe86.jpg","width":1080,"height":1350,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":68,"min_quantity":1}],"weight":"0.5","compare_at_price":"0","price":"68","retail_price":"0","available":true,"url":"\/products\/toppp-w923058-spring-and-summer-new-womens-two-piece-dress?variant=ac5fc515-472f-4f15-af5e-7fea020e6c33","available_quantity":20,"options":[{"name":"colour","value":"black"},{"name":"size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":9};
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 `
`;
}()}