${function() {
const variantData = data.variant || {"id":"adbbeba4-1e86-4f81-ac13-78d88eb02346","product_id":"3477bac2-13bb-4432-ada2-b6aae00540d6","title":"GREEN-S","weight_unit":"kg","inventory_quantity":1000,"sku":"CY-!127619-C1278S1563","barcode":"","position":1,"option1":"GREEN","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e69a6d1fe14e986df1ec64639d2617af.jpeg","path":"e69a6d1fe14e986df1ec64639d2617af.jpeg","width":600,"height":800,"alt":"High Waisted Long Sleeves Solid Color Tied Waist Round-Neck Midi Dresses Sweater Dresses","aspect_ratio":0.75},"wholesale_price":[{"price":36.99,"min_quantity":1}],"weight":"0","compare_at_price":"36.99","price":"36.99","retail_price":"36.99","available":true,"url":"\/products\/high-waisted-long-sleeves-solid-color-tied-waist-round-neck-midi-dresses-sweater-dresses?variant=adbbeba4-1e86-4f81-ac13-78d88eb02346","available_quantity":1000,"options":[{"name":"Color","value":"GREEN"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = false;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Color
: GREEN
${function(){
const optName = "Color";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (': ' + optionValue) : '';
return `
${optionValueText}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Size
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Add to cart
Buy now
Product was out of stock.
Product is unavailable.
${function() {
const minInventory = parseInt('10');
const maxInventory = parseInt('20');
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 `
`;
}()}