${function() {
const variantData = data.variant || {"id":"1a305290-c9cb-4376-86c3-bdf9d9bbb0d3","product_id":"779ababf-f63c-4338-aafd-94bc32c38b18","title":"Colorful-S","weight_unit":"kg","inventory_quantity":999,"sku":"K544788195901251584","barcode":"","position":1,"option1":"Colorful","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c17ba3265b245ff793f0b1e56d4b1670.jpeg","path":"c17ba3265b245ff793f0b1e56d4b1670.jpeg","width":1600,"height":1600,"alt":"Women's Sweater Knitting Patterns Colorful Sweatshirt","aspect_ratio":1},"wholesale_price":[{"price":25.99,"min_quantity":1}],"weight":"0.3","compare_at_price":"25.99","price":"25.99","retail_price":"25.99","available":true,"url":"\/products\/womens-sweater-knitting-patterns-colorful-sweatshirt?variant=1a305290-c9cb-4376-86c3-bdf9d9bbb0d3","available_quantity":999999999,"options":[{"name":"Color","value":"Colorful"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":3};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Color
: Colorful
${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
: S
${function(){
const optName = "Size";
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}
`
}()}
Add to cart
Buy now
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"1a305290-c9cb-4376-86c3-bdf9d9bbb0d3","product_id":"779ababf-f63c-4338-aafd-94bc32c38b18","title":"Colorful-S","weight_unit":"kg","inventory_quantity":999,"sku":"K544788195901251584","barcode":"","position":1,"option1":"Colorful","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c17ba3265b245ff793f0b1e56d4b1670.jpeg","path":"c17ba3265b245ff793f0b1e56d4b1670.jpeg","width":1600,"height":1600,"alt":"Women's Sweater Knitting Patterns Colorful Sweatshirt","aspect_ratio":1},"wholesale_price":[{"price":25.99,"min_quantity":1}],"weight":"0.3","compare_at_price":"25.99","price":"25.99","retail_price":"25.99","available":true,"url":"\/products\/womens-sweater-knitting-patterns-colorful-sweatshirt?variant=1a305290-c9cb-4376-86c3-bdf9d9bbb0d3","available_quantity":999999999,"options":[{"name":"Color","value":"Colorful"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":3};
return `
`
}()}