${function() {
const variantData = data.variant || {"id":"4268b595-d9da-4085-aaec-439818499b1d","product_id":"7220c53c-4225-45f2-977d-28242fc33ff0","title":"Light Grey-S","weight_unit":"kg","inventory_quantity":999,"sku":"K547707531593441280","barcode":"","position":1,"option1":"Light Grey","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/52ac859060dfce26c64848378577340a.jpeg","path":"52ac859060dfce26c64848378577340a.jpeg","width":675,"height":900,"alt":"Women's Dog Colorful Print Sweatshirt","aspect_ratio":0.75},"wholesale_price":[{"price":22.99,"min_quantity":1}],"weight":"0.3","compare_at_price":"37.99","price":"22.99","retail_price":"37.99","available":true,"url":"\/products\/womens-dog-colorful-print-sweatshirt?variant=4268b595-d9da-4085-aaec-439818499b1d","available_quantity":999999999,"options":[{"name":"Color","value":"Light Grey"},{"name":"Size","value":"S"}],"off_ratio":39,"flashsale_info":[],"sales":345};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Color
: Light Grey
${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":"4268b595-d9da-4085-aaec-439818499b1d","product_id":"7220c53c-4225-45f2-977d-28242fc33ff0","title":"Light Grey-S","weight_unit":"kg","inventory_quantity":999,"sku":"K547707531593441280","barcode":"","position":1,"option1":"Light Grey","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/52ac859060dfce26c64848378577340a.jpeg","path":"52ac859060dfce26c64848378577340a.jpeg","width":675,"height":900,"alt":"Women's Dog Colorful Print Sweatshirt","aspect_ratio":0.75},"wholesale_price":[{"price":22.99,"min_quantity":1}],"weight":"0.3","compare_at_price":"37.99","price":"22.99","retail_price":"37.99","available":true,"url":"\/products\/womens-dog-colorful-print-sweatshirt?variant=4268b595-d9da-4085-aaec-439818499b1d","available_quantity":999999999,"options":[{"name":"Color","value":"Light Grey"},{"name":"Size","value":"S"}],"off_ratio":39,"flashsale_info":[],"sales":345};
return `
`
}()}