${function() {
const variantData = data.variant || {"id":"268e36f1-7f64-47c0-8b1a-7b467573c013","product_id":"45e30e82-22af-4d8f-8514-cb5fea831a97","title":"A","weight_unit":"kg","inventory_quantity":1000,"sku":"CP19463-X15074","barcode":"","position":1,"option1":"A","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/634e046e289ca5069ca2a3d3eddd1d92.png","path":"634e046e289ca5069ca2a3d3eddd1d92.png","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\/fashion-clavicle-chain-short-necklace?variant=268e36f1-7f64-47c0-8b1a-7b467573c013","available_quantity":999999999,"options":[{"name":"Style","value":"A"}],"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}
`
}()}
Product was out of stock.
Product is unavailable.