${function() {
const variantData = data.variant || {"id":"c0f2a92a-ba93-4945-b8f6-e35872720869","product_id":"0c1ae909-967f-4dbd-bf33-a7e562ddcff4","title":"Black-6","weight_unit":"","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"Black","option2":"6","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/facb865f3e34c70f11df94a5792a8601.jpeg","path":"facb865f3e34c70f11df94a5792a8601.jpeg","width":640,"height":640,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":69.98,"min_quantity":1}],"weight":"0","compare_at_price":"89.98","price":"69.98","retail_price":"89.98","available":true,"url":"\/products\/mens-leather-warm-casual-shoes?variant=c0f2a92a-ba93-4945-b8f6-e35872720869","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Shoe Size","value":"6"}],"off_ratio":22,"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
: 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
${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":"c0f2a92a-ba93-4945-b8f6-e35872720869","product_id":"0c1ae909-967f-4dbd-bf33-a7e562ddcff4","title":"Black-6","weight_unit":"","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"Black","option2":"6","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/facb865f3e34c70f11df94a5792a8601.jpeg","path":"facb865f3e34c70f11df94a5792a8601.jpeg","width":640,"height":640,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":69.98,"min_quantity":1}],"weight":"0","compare_at_price":"89.98","price":"69.98","retail_price":"89.98","available":true,"url":"\/products\/mens-leather-warm-casual-shoes?variant=c0f2a92a-ba93-4945-b8f6-e35872720869","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Shoe Size","value":"6"}],"off_ratio":22,"flashsale_info":[],"sales":0};
return `
`
}()}