${function() {
const variantData = data.variant || {"id":"2da0681a-d361-4be8-bfb2-7b41c545df56","product_id":"a65316ec-23b0-416e-84cb-40f5b7278581","title":"M-Army Green","weight_unit":"","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"M","option2":"Army Green","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ae67683ddea121489e15f7edad595e0a.jpeg","path":"ae67683ddea121489e15f7edad595e0a.jpeg","width":640,"height":640,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"59.99","price":"39.99","retail_price":"59.99","available":true,"url":"\/products\/summer-short-sleeve-gyms-bodybuilding-cotton-t-shirts?variant=2da0681a-d361-4be8-bfb2-7b41c545df56","available_quantity":999999999,"options":[{"name":"Size","value":"M"},{"name":"Color","value":"Army Green"}],"off_ratio":33,"flashsale_info":[],"sales":7};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Size
: M
${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}
`
}()}
Color
: Army 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}
`
}()}
Add to cart
Buy now
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"2da0681a-d361-4be8-bfb2-7b41c545df56","product_id":"a65316ec-23b0-416e-84cb-40f5b7278581","title":"M-Army Green","weight_unit":"","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"M","option2":"Army Green","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ae67683ddea121489e15f7edad595e0a.jpeg","path":"ae67683ddea121489e15f7edad595e0a.jpeg","width":640,"height":640,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"59.99","price":"39.99","retail_price":"59.99","available":true,"url":"\/products\/summer-short-sleeve-gyms-bodybuilding-cotton-t-shirts?variant=2da0681a-d361-4be8-bfb2-7b41c545df56","available_quantity":999999999,"options":[{"name":"Size","value":"M"},{"name":"Color","value":"Army Green"}],"off_ratio":33,"flashsale_info":[],"sales":7};
return `
`
}()}