${function() {
const variantData = data.variant || {"id":"9d5647b8-4335-415d-8f92-f8e0d8e0100f","product_id":"1037b8bb-8958-40e4-bf84-28b7ebc52fe9","title":"Black-S","weight_unit":"kg","inventory_quantity":999,"sku":"K586037263264755712","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1be5950670e215a30c47f018dc7f8bd2.jpeg","path":"1be5950670e215a30c47f018dc7f8bd2.jpeg","width":1200,"height":1600,"alt":"Men's Slainte St. Patrick's Day Printed Casual T-Shirt","aspect_ratio":0.75},"wholesale_price":[{"price":17.99,"min_quantity":1}],"weight":"0.19","compare_at_price":"36.99","price":"17.99","retail_price":"36.99","available":true,"url":"\/products\/mens-slainte-st-patricks-day-printed-casual-t-shirt?variant=9d5647b8-4335-415d-8f92-f8e0d8e0100f","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":51,"flashsale_info":[],"sales":171};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Color
: Black
${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":"9d5647b8-4335-415d-8f92-f8e0d8e0100f","product_id":"1037b8bb-8958-40e4-bf84-28b7ebc52fe9","title":"Black-S","weight_unit":"kg","inventory_quantity":999,"sku":"K586037263264755712","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1be5950670e215a30c47f018dc7f8bd2.jpeg","path":"1be5950670e215a30c47f018dc7f8bd2.jpeg","width":1200,"height":1600,"alt":"Men's Slainte St. Patrick's Day Printed Casual T-Shirt","aspect_ratio":0.75},"wholesale_price":[{"price":17.99,"min_quantity":1}],"weight":"0.19","compare_at_price":"36.99","price":"17.99","retail_price":"36.99","available":true,"url":"\/products\/mens-slainte-st-patricks-day-printed-casual-t-shirt?variant=9d5647b8-4335-415d-8f92-f8e0d8e0100f","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":51,"flashsale_info":[],"sales":171};
return `
`
}()}