${function() {
const variantData = data.variant || {"id":"613bbcc5-53ac-4f20-ab16-79b41c6ea61b","product_id":"819407cd-628f-4782-b1c4-dc75d8348b7a","title":"Dark Green-S","weight_unit":"kg","inventory_quantity":999,"sku":"K582851130129108992","barcode":"","position":1,"option1":"Dark Green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/594bf17043eeebe79402c5d5ca55b509.jpeg","path":"594bf17043eeebe79402c5d5ca55b509.jpeg","width":734,"height":981,"alt":"Men's Cute Embroidered Bear Snowflake Pattern Print Sweatshirt","aspect_ratio":0.7482161060142711},"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"0.3","compare_at_price":"43.99","price":"24.99","retail_price":"43.99","available":true,"url":"\/products\/mens-cute-embroidered-bear-snowflake-pattern-print-sweatshirt?variant=613bbcc5-53ac-4f20-ab16-79b41c6ea61b","available_quantity":999999999,"options":[{"name":"Color","value":"Dark Green"},{"name":"Size","value":"S"}],"off_ratio":43,"flashsale_info":[],"sales":250};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Color
: Dark 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":"613bbcc5-53ac-4f20-ab16-79b41c6ea61b","product_id":"819407cd-628f-4782-b1c4-dc75d8348b7a","title":"Dark Green-S","weight_unit":"kg","inventory_quantity":999,"sku":"K582851130129108992","barcode":"","position":1,"option1":"Dark Green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/594bf17043eeebe79402c5d5ca55b509.jpeg","path":"594bf17043eeebe79402c5d5ca55b509.jpeg","width":734,"height":981,"alt":"Men's Cute Embroidered Bear Snowflake Pattern Print Sweatshirt","aspect_ratio":0.7482161060142711},"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"0.3","compare_at_price":"43.99","price":"24.99","retail_price":"43.99","available":true,"url":"\/products\/mens-cute-embroidered-bear-snowflake-pattern-print-sweatshirt?variant=613bbcc5-53ac-4f20-ab16-79b41c6ea61b","available_quantity":999999999,"options":[{"name":"Color","value":"Dark Green"},{"name":"Size","value":"S"}],"off_ratio":43,"flashsale_info":[],"sales":250};
return `
`
}()}