${function() {
const variantData = data.variant || {"id":"49d1237f-c437-4248-a07e-a9c5381242d3","product_id":"2c60ddaa-0018-45c2-9f2c-c016c6932099","title":"Green-S","weight_unit":"kg","inventory_quantity":999,"sku":"K588310739310993408","barcode":"","position":1,"option1":"Green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f03432d082961ce3e1ccc20555053a8a.jpeg","path":"f03432d082961ce3e1ccc20555053a8a.jpeg","width":787,"height":1048,"alt":"Men's Saint Patrick's Day Cute Koala Drink Beer Print T-Shirt","aspect_ratio":0.7509541984732825},"wholesale_price":[{"price":20.99,"min_quantity":1}],"weight":"0.25","compare_at_price":"38.99","price":"20.99","retail_price":"38.99","available":true,"url":"\/products\/mens-saint-patricks-day-cute-koala-drink-beer-print-t-shirt?variant=49d1237f-c437-4248-a07e-a9c5381242d3","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"S"}],"off_ratio":46,"flashsale_info":[],"sales":290};
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":"49d1237f-c437-4248-a07e-a9c5381242d3","product_id":"2c60ddaa-0018-45c2-9f2c-c016c6932099","title":"Green-S","weight_unit":"kg","inventory_quantity":999,"sku":"K588310739310993408","barcode":"","position":1,"option1":"Green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f03432d082961ce3e1ccc20555053a8a.jpeg","path":"f03432d082961ce3e1ccc20555053a8a.jpeg","width":787,"height":1048,"alt":"Men's Saint Patrick's Day Cute Koala Drink Beer Print T-Shirt","aspect_ratio":0.7509541984732825},"wholesale_price":[{"price":20.99,"min_quantity":1}],"weight":"0.25","compare_at_price":"38.99","price":"20.99","retail_price":"38.99","available":true,"url":"\/products\/mens-saint-patricks-day-cute-koala-drink-beer-print-t-shirt?variant=49d1237f-c437-4248-a07e-a9c5381242d3","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"S"}],"off_ratio":46,"flashsale_info":[],"sales":290};
return `
`
}()}