${function() {
const variantData = data.variant || {"id":"545d4738-38fb-4455-aa07-39f88abb0d8b","product_id":"fc7f0940-0414-46b7-95f2-b7714f283eb6","title":"White-5.5","weight_unit":"kg","inventory_quantity":997,"sku":"WS-122-White-5.5","barcode":"","position":1,"option1":"White","option2":"5.5","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/3515f215b813e4c99dc090054ad096f1.jpeg","path":"3515f215b813e4c99dc090054ad096f1.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":56.99,"min_quantity":1}],"weight":"0","compare_at_price":"110.99","price":"56.99","retail_price":"110.99","available":true,"url":"\/products\/womens-rainbow-shoes?variant=545d4738-38fb-4455-aa07-39f88abb0d8b","available_quantity":999999999,"options":[{"name":"Color","value":"White"},{"name":"Size","value":"5.5"}],"off_ratio":49,"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
: White
${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}
`
}()}
Size
: 5.5
${function(){
const optName = "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":"545d4738-38fb-4455-aa07-39f88abb0d8b","product_id":"fc7f0940-0414-46b7-95f2-b7714f283eb6","title":"White-5.5","weight_unit":"kg","inventory_quantity":997,"sku":"WS-122-White-5.5","barcode":"","position":1,"option1":"White","option2":"5.5","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/3515f215b813e4c99dc090054ad096f1.jpeg","path":"3515f215b813e4c99dc090054ad096f1.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":56.99,"min_quantity":1}],"weight":"0","compare_at_price":"110.99","price":"56.99","retail_price":"110.99","available":true,"url":"\/products\/womens-rainbow-shoes?variant=545d4738-38fb-4455-aa07-39f88abb0d8b","available_quantity":999999999,"options":[{"name":"Color","value":"White"},{"name":"Size","value":"5.5"}],"off_ratio":49,"flashsale_info":[],"sales":1};
return `
`
}()}