${function() {
const variantData = data.variant || {"id":"b7db0e14-efa1-4bde-b8a0-f2615317d513","product_id":"12250e4b-4129-4f2a-8c3c-50c259590978","title":"Black-S","weight_unit":"kg","inventory_quantity":1000,"sku":"SP230330PE1S-99714801","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/884ef789ae4d9b5f61a7fcc69f1f0c11.jpeg","path":"884ef789ae4d9b5f61a7fcc69f1f0c11.jpeg","width":948,"height":948,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":28.8,"min_quantity":1}],"weight":"0","compare_at_price":"28.8","price":"28.8","retail_price":"28.8","available":true,"url":"\/products\/seamless-solid-fit-shorts-7469459?variant=b7db0e14-efa1-4bde-b8a0-f2615317d513","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
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.