${function() {
const variantData = data.variant || {"id":"9e34e7af-3e36-4e98-8a3e-41868d872514","product_id":"8d6d63f3-423c-4ef8-ae57-1bae8b569482","title":"knaki-5","weight_unit":"","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"knaki","option2":"5","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1001d2ba6138791cb192ffe91a64cf1d.jpeg","path":"1001d2ba6138791cb192ffe91a64cf1d.jpeg","width":640,"height":640,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":65.99,"min_quantity":1}],"weight":"0","compare_at_price":"125.99","price":"65.99","retail_price":"125.99","available":true,"url":"\/products\/2020-new-unisex-work-safety-shoes?variant=9e34e7af-3e36-4e98-8a3e-41868d872514","available_quantity":999999999,"options":[{"name":"Color","value":"knaki"},{"name":"Shoe Size","value":"5"}],"off_ratio":48,"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
: knaki
${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
: 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":"9e34e7af-3e36-4e98-8a3e-41868d872514","product_id":"8d6d63f3-423c-4ef8-ae57-1bae8b569482","title":"knaki-5","weight_unit":"","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"knaki","option2":"5","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1001d2ba6138791cb192ffe91a64cf1d.jpeg","path":"1001d2ba6138791cb192ffe91a64cf1d.jpeg","width":640,"height":640,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":65.99,"min_quantity":1}],"weight":"0","compare_at_price":"125.99","price":"65.99","retail_price":"125.99","available":true,"url":"\/products\/2020-new-unisex-work-safety-shoes?variant=9e34e7af-3e36-4e98-8a3e-41868d872514","available_quantity":999999999,"options":[{"name":"Color","value":"knaki"},{"name":"Shoe Size","value":"5"}],"off_ratio":48,"flashsale_info":[],"sales":0};
return `
`
}()}