${function() {
const variantData = data.variant || {"id":"fe71f2a2-f80e-45c4-b3c1-bc07f61343a6","product_id":"8ca4cf37-86b5-40ad-b1f4-cca6bed97862","title":"Green-S","weight_unit":"kg","inventory_quantity":999,"sku":"K575608264082984960","barcode":"","position":1,"option1":"Green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/05218223c4106a4eb39e13efd4d1f30b.jpeg","path":"05218223c4106a4eb39e13efd4d1f30b.jpeg","width":600,"height":800,"alt":"Women's Lucky Love Heart Leaf St. Patrick's Day Print Casual Sweatshirt","aspect_ratio":0.75},"wholesale_price":[{"price":23.99,"min_quantity":1}],"weight":"0.3","compare_at_price":"42.99","price":"23.99","retail_price":"42.99","available":true,"url":"\/products\/womens-lucky-love-heart-leaf-st-patricks-day-print-casual-sweatshirt?variant=fe71f2a2-f80e-45c4-b3c1-bc07f61343a6","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"S"}],"off_ratio":44,"flashsale_info":[],"sales":270};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
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
: 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":"fe71f2a2-f80e-45c4-b3c1-bc07f61343a6","product_id":"8ca4cf37-86b5-40ad-b1f4-cca6bed97862","title":"Green-S","weight_unit":"kg","inventory_quantity":999,"sku":"K575608264082984960","barcode":"","position":1,"option1":"Green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/05218223c4106a4eb39e13efd4d1f30b.jpeg","path":"05218223c4106a4eb39e13efd4d1f30b.jpeg","width":600,"height":800,"alt":"Women's Lucky Love Heart Leaf St. Patrick's Day Print Casual Sweatshirt","aspect_ratio":0.75},"wholesale_price":[{"price":23.99,"min_quantity":1}],"weight":"0.3","compare_at_price":"42.99","price":"23.99","retail_price":"42.99","available":true,"url":"\/products\/womens-lucky-love-heart-leaf-st-patricks-day-print-casual-sweatshirt?variant=fe71f2a2-f80e-45c4-b3c1-bc07f61343a6","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"S"}],"off_ratio":44,"flashsale_info":[],"sales":270};
return `
`
}()}