${function() {
const variantData = data.variant || {"id":"0de688a2-3a6e-4961-aca8-0fa03da7a0c0","product_id":"5dba75c8-adb2-45d6-8fb7-5e05b0c9d282","title":"Brown-iPhone11","weight_unit":"kg","inventory_quantity":1000,"sku":"CP33472-C007-X15499","barcode":"","position":9,"option1":"Brown","option2":"iPhone11","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7b8ac088c942dd6111e80b8fe6374f4d.jpeg","path":"7b8ac088c942dd6111e80b8fe6374f4d.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"19.99","retail_price":"0","available":true,"url":"\/products\/multi-card-zipper-pocket-leather-phone-case?variant=0de688a2-3a6e-4961-aca8-0fa03da7a0c0","available_quantity":999999999,"options":[{"name":"Color","value":"Brown"},{"name":"Style","value":"iPhone11"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ``
)}
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.