${function() {
const variantData = data.variant || {"id":"c592aa79-9fcf-4e15-9fdd-fd2b6cf2215e","product_id":"fa7d908d-71ef-4001-b9e6-9818c3b7b698","title":"Purple-S","weight_unit":"kg","inventory_quantity":999,"sku":"K542545268002365440","barcode":"","position":1,"option1":"Purple","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b72af684c4a26517931df676a4629b0c.png","path":"b72af684c4a26517931df676a4629b0c.png","width":600,"height":800,"alt":"Christmas I Want A Hippopotamus Print Raglan Sleeve Sweatshirt","aspect_ratio":0.75},"wholesale_price":[{"price":22.99,"min_quantity":1}],"weight":"0.5","compare_at_price":"22.99","price":"22.99","retail_price":"22.99","available":true,"url":"\/products\/christmas-i-want-a-hippopotamus-print-raglan-sleeve-sweatshirt?variant=c592aa79-9fcf-4e15-9fdd-fd2b6cf2215e","available_quantity":999999999,"options":[{"name":"Color","value":"Purple"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":3};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Color
: Purple
${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":"c592aa79-9fcf-4e15-9fdd-fd2b6cf2215e","product_id":"fa7d908d-71ef-4001-b9e6-9818c3b7b698","title":"Purple-S","weight_unit":"kg","inventory_quantity":999,"sku":"K542545268002365440","barcode":"","position":1,"option1":"Purple","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b72af684c4a26517931df676a4629b0c.png","path":"b72af684c4a26517931df676a4629b0c.png","width":600,"height":800,"alt":"Christmas I Want A Hippopotamus Print Raglan Sleeve Sweatshirt","aspect_ratio":0.75},"wholesale_price":[{"price":22.99,"min_quantity":1}],"weight":"0.5","compare_at_price":"22.99","price":"22.99","retail_price":"22.99","available":true,"url":"\/products\/christmas-i-want-a-hippopotamus-print-raglan-sleeve-sweatshirt?variant=c592aa79-9fcf-4e15-9fdd-fd2b6cf2215e","available_quantity":999999999,"options":[{"name":"Color","value":"Purple"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":3};
return `
`
}()}