${function() {
const variantData = data.variant || {"id":"c4baa633-d78e-456f-bac3-6f1fbe4e1b40","product_id":"f078d52b-179c-4564-8b0d-67ab94a79ba9","title":"Gray-One Size","weight_unit":"g","inventory_quantity":9999,"sku":"XHdJO1jnG-Gray-OneSize","barcode":"","position":1,"option1":"Gray","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0f48c40eb4a6aa320218918bc70c8876.jpeg","path":"0f48c40eb4a6aa320218918bc70c8876.jpeg","width":1440,"height":1440,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":10.89,"min_quantity":1}],"weight":"100","compare_at_price":"33","price":"10.89","retail_price":"33","available":true,"url":"\/products\/cross-knitted-hat?variant=c4baa633-d78e-456f-bac3-6f1fbe4e1b40","available_quantity":999999999,"options":[{"name":"Color","value":"Gray"},{"name":"Size","value":"One Size"}],"off_ratio":67,"flashsale_info":[],"sales":13};
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 : XHdJO1jnG-Gray-OneSize
Weight : 100g
${function(){
const variantData = data.variant || {"id":"c4baa633-d78e-456f-bac3-6f1fbe4e1b40","product_id":"f078d52b-179c-4564-8b0d-67ab94a79ba9","title":"Gray-One Size","weight_unit":"g","inventory_quantity":9999,"sku":"XHdJO1jnG-Gray-OneSize","barcode":"","position":1,"option1":"Gray","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0f48c40eb4a6aa320218918bc70c8876.jpeg","path":"0f48c40eb4a6aa320218918bc70c8876.jpeg","width":1440,"height":1440,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":10.89,"min_quantity":1}],"weight":"100","compare_at_price":"33","price":"10.89","retail_price":"33","available":true,"url":"\/products\/cross-knitted-hat?variant=c4baa633-d78e-456f-bac3-6f1fbe4e1b40","available_quantity":999999999,"options":[{"name":"Color","value":"Gray"},{"name":"Size","value":"One Size"}],"off_ratio":67,"flashsale_info":[],"sales":13};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}