${function() {
const variantData = data.variant || {"id":"b08f4ca4-fad0-4daf-bf7e-1b1c4f26ac9e","product_id":"2a87cceb-422f-4018-b503-28e2db6fdd82","title":"Hat-One Size","weight_unit":"kg","inventory_quantity":999,"sku":"K585629844469182464","barcode":"","position":1,"option1":"Hat","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/3d1947c820ef7b56a4c5c44a0ddf899c.jpeg","path":"3d1947c820ef7b56a4c5c44a0ddf899c.jpeg","width":1000,"height":1336,"alt":"Saint Patrick's Day Plaid Irish Bow And Fedora Hat","aspect_ratio":0.7485029940119761},"wholesale_price":[{"price":11.99,"min_quantity":1}],"weight":"0.13","compare_at_price":"24.99","price":"11.99","retail_price":"24.99","available":true,"url":"\/products\/saint-patricks-day-plaid-irish-bow-and-fedora-hat?variant=b08f4ca4-fad0-4daf-bf7e-1b1c4f26ac9e","available_quantity":999999999,"options":[{"name":"Color","value":"Hat"},{"name":"Size","value":"One Size"}],"off_ratio":52,"flashsale_info":[],"sales":678};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Color
: Hat
${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":"b08f4ca4-fad0-4daf-bf7e-1b1c4f26ac9e","product_id":"2a87cceb-422f-4018-b503-28e2db6fdd82","title":"Hat-One Size","weight_unit":"kg","inventory_quantity":999,"sku":"K585629844469182464","barcode":"","position":1,"option1":"Hat","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/3d1947c820ef7b56a4c5c44a0ddf899c.jpeg","path":"3d1947c820ef7b56a4c5c44a0ddf899c.jpeg","width":1000,"height":1336,"alt":"Saint Patrick's Day Plaid Irish Bow And Fedora Hat","aspect_ratio":0.7485029940119761},"wholesale_price":[{"price":11.99,"min_quantity":1}],"weight":"0.13","compare_at_price":"24.99","price":"11.99","retail_price":"24.99","available":true,"url":"\/products\/saint-patricks-day-plaid-irish-bow-and-fedora-hat?variant=b08f4ca4-fad0-4daf-bf7e-1b1c4f26ac9e","available_quantity":999999999,"options":[{"name":"Color","value":"Hat"},{"name":"Size","value":"One Size"}],"off_ratio":52,"flashsale_info":[],"sales":678};
return `
`
}()}