${function() {
const variantData = data.variant || {"id":"80cf9d20-8527-4990-90dd-823d68b8e07a","product_id":"788b477a-cfa9-443d-b659-8a087090a8c1","title":"Green-S","weight_unit":"g","inventory_quantity":999,"sku":"XHwUytZoq-Green-S","barcode":"","position":1,"option1":"Green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2d76aa930db2fa3a28712a3c2aa1603f.jpeg","path":"2d76aa930db2fa3a28712a3c2aa1603f.jpeg","width":1440,"height":1440,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":26.89,"min_quantity":1}],"weight":"300","compare_at_price":"38","price":"26.89","retail_price":"38","available":true,"url":"\/products\/retro-fashion-street-hip-hop-tapestry-sweatshirt?variant=80cf9d20-8527-4990-90dd-823d68b8e07a","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"S"}],"off_ratio":29,"flashsale_info":[],"sales":2};
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 : XHwUytZoq-Green-S
Weight : 300g
${function(){
const variantData = data.variant || {"id":"80cf9d20-8527-4990-90dd-823d68b8e07a","product_id":"788b477a-cfa9-443d-b659-8a087090a8c1","title":"Green-S","weight_unit":"g","inventory_quantity":999,"sku":"XHwUytZoq-Green-S","barcode":"","position":1,"option1":"Green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2d76aa930db2fa3a28712a3c2aa1603f.jpeg","path":"2d76aa930db2fa3a28712a3c2aa1603f.jpeg","width":1440,"height":1440,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":26.89,"min_quantity":1}],"weight":"300","compare_at_price":"38","price":"26.89","retail_price":"38","available":true,"url":"\/products\/retro-fashion-street-hip-hop-tapestry-sweatshirt?variant=80cf9d20-8527-4990-90dd-823d68b8e07a","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"S"}],"off_ratio":29,"flashsale_info":[],"sales":2};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}