${function() {
const variantData = data.variant || {"id":"836fceec-982a-4f90-acc9-9bbfe4cfb583","product_id":"44fd2c43-4817-4288-a35b-e364a90fcfd3","title":"black-S","weight_unit":"kg","inventory_quantity":0,"sku":"66230428452-black-S","barcode":"","position":6,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c9f50c2c51e2c84b20f91a781ebfc7ee.jpeg","path":"c9f50c2c51e2c84b20f91a781ebfc7ee.jpeg","width":800,"height":800,"alt":"Cotton linen personalized slit vest","aspect_ratio":1},"wholesale_price":[{"price":37.62,"min_quantity":1}],"weight":"0.3","compare_at_price":"48","price":"37.62","retail_price":"48","available":true,"url":"\/products\/cotton-linen-personalized-slit-vest?variant=836fceec-982a-4f90-acc9-9bbfe4cfb583","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"name":"size","value":"S"}],"off_ratio":22,"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 + '%'
: ``
)}
`;
}()}
${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.