${function() {
const variantData = data.variant || {"id":"6e286521-1d2f-47ac-b561-220e18391bfa","product_id":"0bc333bb-268e-4124-8665-f090b641e2aa","title":"Green-S","weight_unit":"kg","inventory_quantity":999,"sku":"K587950695319146496","barcode":"","position":1,"option1":"Green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5d9350db0eabdd7ab01f8a53d02980ec.jpeg","path":"5d9350db0eabdd7ab01f8a53d02980ec.jpeg","width":605,"height":806,"alt":"Men's Leprechaun I Survived Print St Patrick's Day Shorts","aspect_ratio":0.750620347394541},"wholesale_price":[{"price":23.99,"min_quantity":1}],"weight":"0.3","compare_at_price":"43.99","price":"23.99","retail_price":"43.99","available":true,"url":"\/products\/mens-leprechaun-i-survived-print-st-patricks-day-shorts?variant=6e286521-1d2f-47ac-b561-220e18391bfa","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"S"}],"off_ratio":45,"flashsale_info":[],"sales":322};
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":"6e286521-1d2f-47ac-b561-220e18391bfa","product_id":"0bc333bb-268e-4124-8665-f090b641e2aa","title":"Green-S","weight_unit":"kg","inventory_quantity":999,"sku":"K587950695319146496","barcode":"","position":1,"option1":"Green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5d9350db0eabdd7ab01f8a53d02980ec.jpeg","path":"5d9350db0eabdd7ab01f8a53d02980ec.jpeg","width":605,"height":806,"alt":"Men's Leprechaun I Survived Print St Patrick's Day Shorts","aspect_ratio":0.750620347394541},"wholesale_price":[{"price":23.99,"min_quantity":1}],"weight":"0.3","compare_at_price":"43.99","price":"23.99","retail_price":"43.99","available":true,"url":"\/products\/mens-leprechaun-i-survived-print-st-patricks-day-shorts?variant=6e286521-1d2f-47ac-b561-220e18391bfa","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"S"}],"off_ratio":45,"flashsale_info":[],"sales":322};
return `
`
}()}