${function() {
const variantData = data.variant || {"id":"86166b2b-eff8-4874-8c2a-2496e0e7a5ee","product_id":"9ab608e1-e0f8-4aa5-8d87-1b1cd75b4f3d","title":"1 PAIR-Gray","weight_unit":"kg","inventory_quantity":1000,"sku":"HT14933-C006","barcode":"","position":1,"option1":"1 PAIR","option2":"Gray","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2626e5cfffe3d149a6c29748e9440549.jpeg","path":"2626e5cfffe3d149a6c29748e9440549.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":9.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"9.99","retail_price":"0","available":true,"url":"\/products\/warm-lamb-wool-socks?variant=86166b2b-eff8-4874-8c2a-2496e0e7a5ee","available_quantity":999999999,"options":[{"name":"QTY","value":"1 PAIR"},{"name":"Color","value":"Gray"}],"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.