${function() {
const variantData = data.variant || {"id":"9d89217e-c101-4428-9bec-0586da48a314","product_id":"6cf2e02e-2330-4dc4-b676-1db8bb35c761","title":"white-S","weight_unit":"kg","inventory_quantity":1000,"sku":"PA28586-C005-S00S","barcode":"","position":1,"option1":"white","option2":"S","option3":"","note":"","image":null,"wholesale_price":[{"price":36.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"36.99","retail_price":"0","available":true,"url":"\/products\/drawstring-elasticized-casual-trousers?variant=9d89217e-c101-4428-9bec-0586da48a314","available_quantity":999999999,"options":[{"name":"Color","value":"white"},{"name":"Size","value":"S"}],"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.