${function() {
const variantData = data.variant || {"id":"6e5bf68e-ca79-4067-ac82-4c54c7901497","product_id":"08eb24e8-5faa-47b9-80bc-8b89eb7ef16f","title":"Blue-6.5","weight_unit":"","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"Blue","option2":"6.5","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/40b5a863ccad633e32e0ac6b6e330ec3.jpeg","path":"40b5a863ccad633e32e0ac6b6e330ec3.jpeg","width":640,"height":640,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":69.96,"min_quantity":1}],"weight":"0","compare_at_price":"89.96","price":"69.96","retail_price":"89.96","available":true,"url":"\/products\/lightweight-men-steel-toe-safety-work-shoes?variant=6e5bf68e-ca79-4067-ac82-4c54c7901497","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"},{"name":"Shoe Size","value":"6.5"}],"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
: 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":"6e5bf68e-ca79-4067-ac82-4c54c7901497","product_id":"08eb24e8-5faa-47b9-80bc-8b89eb7ef16f","title":"Blue-6.5","weight_unit":"","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"Blue","option2":"6.5","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/40b5a863ccad633e32e0ac6b6e330ec3.jpeg","path":"40b5a863ccad633e32e0ac6b6e330ec3.jpeg","width":640,"height":640,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":69.96,"min_quantity":1}],"weight":"0","compare_at_price":"89.96","price":"69.96","retail_price":"89.96","available":true,"url":"\/products\/lightweight-men-steel-toe-safety-work-shoes?variant=6e5bf68e-ca79-4067-ac82-4c54c7901497","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"},{"name":"Shoe Size","value":"6.5"}],"off_ratio":22,"flashsale_info":[],"sales":0};
return `
`
}()}