${function() {
const variantData = data.variant || {"id":"31281aae-452a-4fe5-9bb8-613698f188a3","product_id":"f4537297-5e23-4a99-bea7-bf00c8fc5bc1","title":"Red-M","weight_unit":"g","inventory_quantity":999,"sku":"XHu72N8jv-Red-M","barcode":"","position":1,"option1":"Red","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/58f497be05e435799fa14b8f9c94f738.jpeg","path":"58f497be05e435799fa14b8f9c94f738.jpeg","width":760,"height":760,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":24.89,"min_quantity":1}],"weight":"200","compare_at_price":"28","price":"24.89","retail_price":"28","available":true,"url":"\/products\/street-loose-casual-running-five-point-pants-sports-shorts?variant=31281aae-452a-4fe5-9bb8-613698f188a3","available_quantity":999999999,"options":[{"name":"Color","value":"Red"},{"name":"Size","value":"M"}],"off_ratio":11,"flashsale_info":[],"sales":20};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = false;
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.
Sku : XHu72N8jv-Red-M
Weight : 200g
${function(){
const variantData = data.variant || {"id":"31281aae-452a-4fe5-9bb8-613698f188a3","product_id":"f4537297-5e23-4a99-bea7-bf00c8fc5bc1","title":"Red-M","weight_unit":"g","inventory_quantity":999,"sku":"XHu72N8jv-Red-M","barcode":"","position":1,"option1":"Red","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/58f497be05e435799fa14b8f9c94f738.jpeg","path":"58f497be05e435799fa14b8f9c94f738.jpeg","width":760,"height":760,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":24.89,"min_quantity":1}],"weight":"200","compare_at_price":"28","price":"24.89","retail_price":"28","available":true,"url":"\/products\/street-loose-casual-running-five-point-pants-sports-shorts?variant=31281aae-452a-4fe5-9bb8-613698f188a3","available_quantity":999999999,"options":[{"name":"Color","value":"Red"},{"name":"Size","value":"M"}],"off_ratio":11,"flashsale_info":[],"sales":20};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}