${function() {
const variantData = data.variant || {"id":"e9347c63-8bbd-4ce3-b0e3-ed465c83299a","product_id":"97a719e1-8aea-420b-90b1-902bff975c4b","title":"Black-6.5","weight_unit":"","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"Black","option2":"6.5","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1bad6e4264cc5ae5429b1b840f4a7397.jpeg","path":"1bad6e4264cc5ae5429b1b840f4a7397.jpeg","width":640,"height":640,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":67.98,"min_quantity":1}],"weight":"0","compare_at_price":"87.98","price":"67.98","retail_price":"87.98","available":true,"url":"\/products\/2020-new-men-oxford-genuine-leather-dress-shoes?variant=e9347c63-8bbd-4ce3-b0e3-ed465c83299a","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Shoe Size","value":"6.5"}],"off_ratio":23,"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
: Black
${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":"e9347c63-8bbd-4ce3-b0e3-ed465c83299a","product_id":"97a719e1-8aea-420b-90b1-902bff975c4b","title":"Black-6.5","weight_unit":"","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"Black","option2":"6.5","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1bad6e4264cc5ae5429b1b840f4a7397.jpeg","path":"1bad6e4264cc5ae5429b1b840f4a7397.jpeg","width":640,"height":640,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":67.98,"min_quantity":1}],"weight":"0","compare_at_price":"87.98","price":"67.98","retail_price":"87.98","available":true,"url":"\/products\/2020-new-men-oxford-genuine-leather-dress-shoes?variant=e9347c63-8bbd-4ce3-b0e3-ed465c83299a","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Shoe Size","value":"6.5"}],"off_ratio":23,"flashsale_info":[],"sales":1};
return `
`
}()}