${function() {
const variantData = data.variant || {"id":"39e99ecc-95ee-441e-9242-4910f5c7b53c","product_id":"d0bcb352-0712-4f57-8f80-6f81384a5021","title":"Blue-S","weight_unit":"kg","inventory_quantity":999,"sku":"K547353568166977536","barcode":"","position":1,"option1":"Blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9e076ad98d5e7e451dbff2decacb5f04.jpeg","path":"9e076ad98d5e7e451dbff2decacb5f04.jpeg","width":1000,"height":1000,"alt":"Women's Horse Art Western Print Long Sleeve T-Shirt","aspect_ratio":1},"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"0.3","compare_at_price":"41.99","price":"24.99","retail_price":"41.99","available":true,"url":"\/products\/womens-horse-art-western-print-long-sleeve-t-shirt?variant=39e99ecc-95ee-441e-9242-4910f5c7b53c","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"},{"name":"Size","value":"S"}],"off_ratio":40,"flashsale_info":[],"sales":4};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Color
: Blue
${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":"39e99ecc-95ee-441e-9242-4910f5c7b53c","product_id":"d0bcb352-0712-4f57-8f80-6f81384a5021","title":"Blue-S","weight_unit":"kg","inventory_quantity":999,"sku":"K547353568166977536","barcode":"","position":1,"option1":"Blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9e076ad98d5e7e451dbff2decacb5f04.jpeg","path":"9e076ad98d5e7e451dbff2decacb5f04.jpeg","width":1000,"height":1000,"alt":"Women's Horse Art Western Print Long Sleeve T-Shirt","aspect_ratio":1},"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"0.3","compare_at_price":"41.99","price":"24.99","retail_price":"41.99","available":true,"url":"\/products\/womens-horse-art-western-print-long-sleeve-t-shirt?variant=39e99ecc-95ee-441e-9242-4910f5c7b53c","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"},{"name":"Size","value":"S"}],"off_ratio":40,"flashsale_info":[],"sales":4};
return `
`
}()}