${function() {
const variantData = data.variant || {"id":"f5e6d0cc-829f-477a-9233-1e1ac32a82e8","product_id":"fbf81119-102c-4eeb-86c6-b1f5a0661bbf","title":"Blue-6.5","weight_unit":"kg","inventory_quantity":964,"sku":"","barcode":"","position":1,"option1":"Blue","option2":"6.5","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7cb497c6739bea1f64701566336b7559.jpeg","path":"7cb497c6739bea1f64701566336b7559.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":69.99,"min_quantity":1}],"weight":"0","compare_at_price":"89.99","price":"69.99","retail_price":"89.99","available":true,"url":"\/products\/men-breathable-outdoor-running-sports-sneakers?variant=f5e6d0cc-829f-477a-9233-1e1ac32a82e8","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"},{"name":"Shoe Size","value":"6.5"}],"off_ratio":22,"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 + '%'
: ` `
)}
`;
}()}
Color
: Blue
${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}
`
}()}
Shoe Size
: 6.5
${function(){
const optName = "Shoe 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":"f5e6d0cc-829f-477a-9233-1e1ac32a82e8","product_id":"fbf81119-102c-4eeb-86c6-b1f5a0661bbf","title":"Blue-6.5","weight_unit":"kg","inventory_quantity":964,"sku":"","barcode":"","position":1,"option1":"Blue","option2":"6.5","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7cb497c6739bea1f64701566336b7559.jpeg","path":"7cb497c6739bea1f64701566336b7559.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":69.99,"min_quantity":1}],"weight":"0","compare_at_price":"89.99","price":"69.99","retail_price":"89.99","available":true,"url":"\/products\/men-breathable-outdoor-running-sports-sneakers?variant=f5e6d0cc-829f-477a-9233-1e1ac32a82e8","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"},{"name":"Shoe Size","value":"6.5"}],"off_ratio":22,"flashsale_info":[],"sales":7};
return `
`
}()}