${function() {
const variantData = data.variant || {"id":"1fbbd4e2-a36f-48d8-8eed-361fcd18af2c","product_id":"db484306-875c-46ae-a694-e408b58d42ea","title":"Red-One Size","weight_unit":"kg","inventory_quantity":999,"sku":"K553457403596247040","barcode":"","position":1,"option1":"Red","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6565294f6440e0523c04a0cad8c237b6.jpeg","path":"6565294f6440e0523c04a0cad8c237b6.jpeg","width":600,"height":800,"alt":"Women's Casual Animal Paw Rhinestone Pattern Baseball Cap","aspect_ratio":0.75},"wholesale_price":[{"price":13.99,"min_quantity":1}],"weight":"0.1","compare_at_price":"22.99","price":"13.99","retail_price":"22.99","available":true,"url":"\/products\/womens-casual-animal-paw-rhinestone-pattern-baseball-cap?variant=1fbbd4e2-a36f-48d8-8eed-361fcd18af2c","available_quantity":999999999,"options":[{"name":"Color","value":"Red"},{"name":"Size","value":"One Size"}],"off_ratio":39,"flashsale_info":[],"sales":426};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Color
: Red
${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
: One Size
${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":"1fbbd4e2-a36f-48d8-8eed-361fcd18af2c","product_id":"db484306-875c-46ae-a694-e408b58d42ea","title":"Red-One Size","weight_unit":"kg","inventory_quantity":999,"sku":"K553457403596247040","barcode":"","position":1,"option1":"Red","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6565294f6440e0523c04a0cad8c237b6.jpeg","path":"6565294f6440e0523c04a0cad8c237b6.jpeg","width":600,"height":800,"alt":"Women's Casual Animal Paw Rhinestone Pattern Baseball Cap","aspect_ratio":0.75},"wholesale_price":[{"price":13.99,"min_quantity":1}],"weight":"0.1","compare_at_price":"22.99","price":"13.99","retail_price":"22.99","available":true,"url":"\/products\/womens-casual-animal-paw-rhinestone-pattern-baseball-cap?variant=1fbbd4e2-a36f-48d8-8eed-361fcd18af2c","available_quantity":999999999,"options":[{"name":"Color","value":"Red"},{"name":"Size","value":"One Size"}],"off_ratio":39,"flashsale_info":[],"sales":426};
return `
`
}()}