${function() {
const variantData = data.variant || {"id":"baf622f1-0927-4e7c-bec6-4c9200304bd3","product_id":"d0319d7f-78fa-404f-8626-70a0360da40b","title":"Red-S","weight_unit":"kg","inventory_quantity":999,"sku":"K625591943914778624","barcode":"","position":1,"option1":"Red","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/54402e160e8869ce9c0be14f8d5c9429.jpeg","path":"54402e160e8869ce9c0be14f8d5c9429.jpeg","width":600,"height":800,"alt":"Men's Retro American Flag July 4th Art Print Sweatpants","aspect_ratio":0.75},"wholesale_price":[{"price":30.99,"min_quantity":1}],"weight":"0.25","compare_at_price":"55.99","price":"30.99","retail_price":"55.99","available":true,"url":"\/products\/mens-retro-american-flag-july-4th-art-print-sweatpants?variant=baf622f1-0927-4e7c-bec6-4c9200304bd3","available_quantity":999999999,"options":[{"name":"Color","value":"Red"},{"name":"Size","value":"S"}],"off_ratio":45,"flashsale_info":[],"sales":0};
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
: 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":"baf622f1-0927-4e7c-bec6-4c9200304bd3","product_id":"d0319d7f-78fa-404f-8626-70a0360da40b","title":"Red-S","weight_unit":"kg","inventory_quantity":999,"sku":"K625591943914778624","barcode":"","position":1,"option1":"Red","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/54402e160e8869ce9c0be14f8d5c9429.jpeg","path":"54402e160e8869ce9c0be14f8d5c9429.jpeg","width":600,"height":800,"alt":"Men's Retro American Flag July 4th Art Print Sweatpants","aspect_ratio":0.75},"wholesale_price":[{"price":30.99,"min_quantity":1}],"weight":"0.25","compare_at_price":"55.99","price":"30.99","retail_price":"55.99","available":true,"url":"\/products\/mens-retro-american-flag-july-4th-art-print-sweatpants?variant=baf622f1-0927-4e7c-bec6-4c9200304bd3","available_quantity":999999999,"options":[{"name":"Color","value":"Red"},{"name":"Size","value":"S"}],"off_ratio":45,"flashsale_info":[],"sales":0};
return `
`
}()}