${function() {
const variantData = data.variant || {"id":"d343e079-cf90-4254-bddb-44e607967943","product_id":"63fbe37b-3484-4193-9df5-afc78baa560a","title":"Green-S","weight_unit":"kg","inventory_quantity":999,"sku":"K585741973809889280","barcode":"","position":1,"option1":"Green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ff9a2a234ff5c3188c6eff602251f067.jpeg","path":"ff9a2a234ff5c3188c6eff602251f067.jpeg","width":598,"height":800,"alt":"Women's Shamrock American Flag Print St Patrick's Day T-Shirt","aspect_ratio":0.7475},"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\/womens-shamrock-american-flag-print-st-patricks-day-t-shirt?variant=d343e079-cf90-4254-bddb-44e607967943","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"S"}],"off_ratio":45,"flashsale_info":[],"sales":427};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Color
: Green
${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":"d343e079-cf90-4254-bddb-44e607967943","product_id":"63fbe37b-3484-4193-9df5-afc78baa560a","title":"Green-S","weight_unit":"kg","inventory_quantity":999,"sku":"K585741973809889280","barcode":"","position":1,"option1":"Green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ff9a2a234ff5c3188c6eff602251f067.jpeg","path":"ff9a2a234ff5c3188c6eff602251f067.jpeg","width":598,"height":800,"alt":"Women's Shamrock American Flag Print St Patrick's Day T-Shirt","aspect_ratio":0.7475},"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\/womens-shamrock-american-flag-print-st-patricks-day-t-shirt?variant=d343e079-cf90-4254-bddb-44e607967943","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"S"}],"off_ratio":45,"flashsale_info":[],"sales":427};
return `
`
}()}