${function() {
const variantData = data.variant || {"id":"81193e74-507f-454b-b522-25238a31fbd3","product_id":"90a6b0e3-9227-4e7f-8e48-b53c2546b033","title":"White-S","weight_unit":"kg","inventory_quantity":999,"sku":"K562467748017246208","barcode":"","position":1,"option1":"White","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b1ffe2161faf1ea7eca6ecc68497bd4d.jpeg","path":"b1ffe2161faf1ea7eca6ecc68497bd4d.jpeg","width":600,"height":800,"alt":"Men's Cute Sketch Dog Drawing Print Casual Long Sleeve T-Shirt","aspect_ratio":0.75},"wholesale_price":[{"price":20.99,"min_quantity":1}],"weight":"0.3","compare_at_price":"37.99","price":"20.99","retail_price":"37.99","available":true,"url":"\/products\/mens-cute-sketch-dog-drawing-print-casual-long-sleeve-t-shirt?variant=81193e74-507f-454b-b522-25238a31fbd3","available_quantity":999999999,"options":[{"name":"Color","value":"White"},{"name":"Size","value":"S"}],"off_ratio":45,"flashsale_info":[],"sales":290};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Color
: White
${function(){
const optName = "Color";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (': ' + optionValue) : '';
return `
${optionValueText}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Size
: S
${function(){
const optName = "Size";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (': ' + optionValue) : '';
return `
${optionValueText}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Add to cart
Buy now
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"81193e74-507f-454b-b522-25238a31fbd3","product_id":"90a6b0e3-9227-4e7f-8e48-b53c2546b033","title":"White-S","weight_unit":"kg","inventory_quantity":999,"sku":"K562467748017246208","barcode":"","position":1,"option1":"White","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b1ffe2161faf1ea7eca6ecc68497bd4d.jpeg","path":"b1ffe2161faf1ea7eca6ecc68497bd4d.jpeg","width":600,"height":800,"alt":"Men's Cute Sketch Dog Drawing Print Casual Long Sleeve T-Shirt","aspect_ratio":0.75},"wholesale_price":[{"price":20.99,"min_quantity":1}],"weight":"0.3","compare_at_price":"37.99","price":"20.99","retail_price":"37.99","available":true,"url":"\/products\/mens-cute-sketch-dog-drawing-print-casual-long-sleeve-t-shirt?variant=81193e74-507f-454b-b522-25238a31fbd3","available_quantity":999999999,"options":[{"name":"Color","value":"White"},{"name":"Size","value":"S"}],"off_ratio":45,"flashsale_info":[],"sales":290};
return `
`
}()}