${function() {
const variantData = data.variant || {"id":"05f6469b-2a31-48e5-94d4-fa2ea255cbab","product_id":"062ce184-1881-42e3-a8bd-5d8314255018","title":"Green-One Size","weight_unit":"kg","inventory_quantity":999,"sku":"K567909975766093824","barcode":"","position":1,"option1":"Green","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a86c729583be1a5a8aa705b45d7f8b24.jpeg","path":"a86c729583be1a5a8aa705b45d7f8b24.jpeg","width":600,"height":800,"alt":"Women's Christmas Santa Snowman Elk Pattern Crew Socks","aspect_ratio":0.75},"wholesale_price":[{"price":5.99,"min_quantity":1}],"weight":"0.05","compare_at_price":"9.99","price":"5.99","retail_price":"9.99","available":true,"url":"\/products\/womens-christmas-santa-snowman-elk-pattern-crew-socks?variant=05f6469b-2a31-48e5-94d4-fa2ea255cbab","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"One Size"}],"off_ratio":40,"flashsale_info":[],"sales":139};
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
: 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":"05f6469b-2a31-48e5-94d4-fa2ea255cbab","product_id":"062ce184-1881-42e3-a8bd-5d8314255018","title":"Green-One Size","weight_unit":"kg","inventory_quantity":999,"sku":"K567909975766093824","barcode":"","position":1,"option1":"Green","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a86c729583be1a5a8aa705b45d7f8b24.jpeg","path":"a86c729583be1a5a8aa705b45d7f8b24.jpeg","width":600,"height":800,"alt":"Women's Christmas Santa Snowman Elk Pattern Crew Socks","aspect_ratio":0.75},"wholesale_price":[{"price":5.99,"min_quantity":1}],"weight":"0.05","compare_at_price":"9.99","price":"5.99","retail_price":"9.99","available":true,"url":"\/products\/womens-christmas-santa-snowman-elk-pattern-crew-socks?variant=05f6469b-2a31-48e5-94d4-fa2ea255cbab","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"One Size"}],"off_ratio":40,"flashsale_info":[],"sales":139};
return `
`
}()}