${function() {
const variantData = data.variant || {"id":"e88249db-cd15-4831-b6cc-5e94ddfd27e7","product_id":"05a79951-470d-44a1-92ea-2f569570718d","title":"Green 1-One Size","weight_unit":"kg","inventory_quantity":999,"sku":"K590435466953711616","barcode":"","position":1,"option1":"Green 1","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/79b955c0659e88da7546c406153dfd6e.jpeg","path":"79b955c0659e88da7546c406153dfd6e.jpeg","width":726,"height":970,"alt":"Saint Patrick's Day Shamrock Lucky Gnome Print Stretchy Beanie Hat","aspect_ratio":0.7484536082474227},"wholesale_price":[{"price":11.99,"min_quantity":1}],"weight":"0.07","compare_at_price":"19.99","price":"11.99","retail_price":"19.99","available":true,"url":"\/products\/saint-patricks-day-shamrock-lucky-gnome-print-stretchy-beanie-hat?variant=e88249db-cd15-4831-b6cc-5e94ddfd27e7","available_quantity":999999999,"options":[{"name":"Color","value":"Green 1"},{"name":"Size","value":"One Size"}],"off_ratio":40,"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
: Green 1
${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":"e88249db-cd15-4831-b6cc-5e94ddfd27e7","product_id":"05a79951-470d-44a1-92ea-2f569570718d","title":"Green 1-One Size","weight_unit":"kg","inventory_quantity":999,"sku":"K590435466953711616","barcode":"","position":1,"option1":"Green 1","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/79b955c0659e88da7546c406153dfd6e.jpeg","path":"79b955c0659e88da7546c406153dfd6e.jpeg","width":726,"height":970,"alt":"Saint Patrick's Day Shamrock Lucky Gnome Print Stretchy Beanie Hat","aspect_ratio":0.7484536082474227},"wholesale_price":[{"price":11.99,"min_quantity":1}],"weight":"0.07","compare_at_price":"19.99","price":"11.99","retail_price":"19.99","available":true,"url":"\/products\/saint-patricks-day-shamrock-lucky-gnome-print-stretchy-beanie-hat?variant=e88249db-cd15-4831-b6cc-5e94ddfd27e7","available_quantity":999999999,"options":[{"name":"Color","value":"Green 1"},{"name":"Size","value":"One Size"}],"off_ratio":40,"flashsale_info":[],"sales":426};
return `
`
}()}