${function() {
const variantData = data.variant || {"id":"6ac31374-36a8-4880-acf4-3d89e35ba555","product_id":"864c6c27-35f5-4a5d-8ce6-9ecac11d5371","title":"Gray-6.5","weight_unit":"kg","inventory_quantity":999,"sku":"","barcode":"","position":1,"option1":"Gray","option2":"6.5","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2457a88ed6a1e010f295fab756a0b48e.jpeg","path":"2457a88ed6a1e010f295fab756a0b48e.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-comfortable-trainers-outdoor-sports-running-shoes?variant=6ac31374-36a8-4880-acf4-3d89e35ba555","available_quantity":999999999,"options":[{"name":"Color","value":"Gray"},{"name":"Shoe Size","value":"6.5"}],"off_ratio":22,"flashsale_info":[],"sales":1};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Color
: Gray
${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":"6ac31374-36a8-4880-acf4-3d89e35ba555","product_id":"864c6c27-35f5-4a5d-8ce6-9ecac11d5371","title":"Gray-6.5","weight_unit":"kg","inventory_quantity":999,"sku":"","barcode":"","position":1,"option1":"Gray","option2":"6.5","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2457a88ed6a1e010f295fab756a0b48e.jpeg","path":"2457a88ed6a1e010f295fab756a0b48e.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-comfortable-trainers-outdoor-sports-running-shoes?variant=6ac31374-36a8-4880-acf4-3d89e35ba555","available_quantity":999999999,"options":[{"name":"Color","value":"Gray"},{"name":"Shoe Size","value":"6.5"}],"off_ratio":22,"flashsale_info":[],"sales":1};
return `
`
}()}