${function() {
const variantData = data.variant || {"id":"5164784c-6fd0-4379-a196-faca02b13a71","product_id":"5de6ad0c-f171-449b-9cd7-d20bab5b2233","title":"Brown-S","weight_unit":"kg","inventory_quantity":999,"sku":"K657139449310375936","barcode":"","position":17,"option1":"Brown","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/406f684af01d225d58f69ec53765b0d8.jpeg","path":"406f684af01d225d58f69ec53765b0d8.jpeg","width":600,"height":800,"alt":"Men's Traditional Pattern Color Matching Art Print Casual Shirt","aspect_ratio":0.75},"wholesale_price":[{"price":28.99,"min_quantity":1}],"weight":"0.25","compare_at_price":"48.99","price":"28.99","retail_price":"48.99","available":true,"url":"\/products\/mens-traditional-pattern-color-matching-art-print-casual-shirt?variant=5164784c-6fd0-4379-a196-faca02b13a71","available_quantity":999999999,"options":[{"name":"Color","value":"Brown"},{"name":"Size","value":"S"}],"off_ratio":41,"flashsale_info":[],"sales":13};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Color
: Brown
${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":"5164784c-6fd0-4379-a196-faca02b13a71","product_id":"5de6ad0c-f171-449b-9cd7-d20bab5b2233","title":"Brown-S","weight_unit":"kg","inventory_quantity":999,"sku":"K657139449310375936","barcode":"","position":17,"option1":"Brown","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/406f684af01d225d58f69ec53765b0d8.jpeg","path":"406f684af01d225d58f69ec53765b0d8.jpeg","width":600,"height":800,"alt":"Men's Traditional Pattern Color Matching Art Print Casual Shirt","aspect_ratio":0.75},"wholesale_price":[{"price":28.99,"min_quantity":1}],"weight":"0.25","compare_at_price":"48.99","price":"28.99","retail_price":"48.99","available":true,"url":"\/products\/mens-traditional-pattern-color-matching-art-print-casual-shirt?variant=5164784c-6fd0-4379-a196-faca02b13a71","available_quantity":999999999,"options":[{"name":"Color","value":"Brown"},{"name":"Size","value":"S"}],"off_ratio":41,"flashsale_info":[],"sales":13};
return `
`
}()}