${function() {
const variantData = data.variant || {"id":"28328e10-6dd0-4eae-82ed-6f01f84089c0","product_id":"7e796294-b3e0-4634-a12d-ddffb5190840","title":"Green-6","weight_unit":"","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"Green","option2":"6","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0fb1aeaeeb56360ac659060638f636e9.jpeg","path":"0fb1aeaeeb56360ac659060638f636e9.jpeg","width":640,"height":558,"alt":"","aspect_ratio":1.146953405017921},"wholesale_price":[{"price":63.89,"min_quantity":1}],"weight":"0","compare_at_price":"83.89","price":"63.89","retail_price":"83.89","available":true,"url":"\/products\/plus-size-steel-toe-cap-men-safety-shoes-work-sneakers?variant=28328e10-6dd0-4eae-82ed-6f01f84089c0","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Shoe Size","value":"6"}],"off_ratio":24,"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
: Green
${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":"28328e10-6dd0-4eae-82ed-6f01f84089c0","product_id":"7e796294-b3e0-4634-a12d-ddffb5190840","title":"Green-6","weight_unit":"","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"Green","option2":"6","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0fb1aeaeeb56360ac659060638f636e9.jpeg","path":"0fb1aeaeeb56360ac659060638f636e9.jpeg","width":640,"height":558,"alt":"","aspect_ratio":1.146953405017921},"wholesale_price":[{"price":63.89,"min_quantity":1}],"weight":"0","compare_at_price":"83.89","price":"63.89","retail_price":"83.89","available":true,"url":"\/products\/plus-size-steel-toe-cap-men-safety-shoes-work-sneakers?variant=28328e10-6dd0-4eae-82ed-6f01f84089c0","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Shoe Size","value":"6"}],"off_ratio":24,"flashsale_info":[],"sales":0};
return `
`
}()}