${function() {
const variantData = data.variant || {"id":"1348ebb6-606b-452c-aedb-bd13096b025d","product_id":"40faad3f-a8aa-40bf-8f0d-ff11d5a9df0b","title":"Beige-S","weight_unit":"kg","inventory_quantity":999,"sku":"K630687668606234624","barcode":"","position":1,"option1":"Beige","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2c3a62c1a1f54d9ab61a54e612567ae3.jpeg","path":"2c3a62c1a1f54d9ab61a54e612567ae3.jpeg","width":1181,"height":1547,"alt":"Men's Sparrow Leaves Art Print Casual Shorts","aspect_ratio":0.7634130575307045},"wholesale_price":[{"price":23.99,"min_quantity":1}],"weight":"0.15","compare_at_price":"34.99","price":"23.99","retail_price":"34.99","available":true,"url":"\/products\/mens-sparrow-leaves-art-print-casual-shorts?variant=1348ebb6-606b-452c-aedb-bd13096b025d","available_quantity":999999999,"options":[{"name":"Color","value":"Beige"},{"name":"Size","value":"S"}],"off_ratio":31,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Color
: Beige
${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":"1348ebb6-606b-452c-aedb-bd13096b025d","product_id":"40faad3f-a8aa-40bf-8f0d-ff11d5a9df0b","title":"Beige-S","weight_unit":"kg","inventory_quantity":999,"sku":"K630687668606234624","barcode":"","position":1,"option1":"Beige","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2c3a62c1a1f54d9ab61a54e612567ae3.jpeg","path":"2c3a62c1a1f54d9ab61a54e612567ae3.jpeg","width":1181,"height":1547,"alt":"Men's Sparrow Leaves Art Print Casual Shorts","aspect_ratio":0.7634130575307045},"wholesale_price":[{"price":23.99,"min_quantity":1}],"weight":"0.15","compare_at_price":"34.99","price":"23.99","retail_price":"34.99","available":true,"url":"\/products\/mens-sparrow-leaves-art-print-casual-shorts?variant=1348ebb6-606b-452c-aedb-bd13096b025d","available_quantity":999999999,"options":[{"name":"Color","value":"Beige"},{"name":"Size","value":"S"}],"off_ratio":31,"flashsale_info":[],"sales":0};
return `
`
}()}