${function() {
const variantData = data.variant || {"id":"3aa5c4bc-6082-4c35-abf6-0ce5cb603db2","product_id":"9968dd45-4cfb-40c5-befd-2fd7696f984a","title":"Green-6.5","weight_unit":"kg","inventory_quantity":999,"sku":"","barcode":"","position":1,"option1":"Green","option2":"6.5","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/420030540aa9dc65c9045c17d8ae7a6f.jpeg","path":"420030540aa9dc65c9045c17d8ae7a6f.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":68.99,"min_quantity":1}],"weight":"0","compare_at_price":"88.99","price":"68.99","retail_price":"88.99","available":true,"url":"\/products\/men-luxury-trainer-race-off-fashion-running-shoes?variant=3aa5c4bc-6082-4c35-abf6-0ce5cb603db2","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Shoe Size","value":"6.5"}],"off_ratio":22,"flashsale_info":[],"sales":0};
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}
`
}()}
Shoe Size
: 6.5
${function(){
const optName = "Shoe 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":"3aa5c4bc-6082-4c35-abf6-0ce5cb603db2","product_id":"9968dd45-4cfb-40c5-befd-2fd7696f984a","title":"Green-6.5","weight_unit":"kg","inventory_quantity":999,"sku":"","barcode":"","position":1,"option1":"Green","option2":"6.5","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/420030540aa9dc65c9045c17d8ae7a6f.jpeg","path":"420030540aa9dc65c9045c17d8ae7a6f.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":68.99,"min_quantity":1}],"weight":"0","compare_at_price":"88.99","price":"68.99","retail_price":"88.99","available":true,"url":"\/products\/men-luxury-trainer-race-off-fashion-running-shoes?variant=3aa5c4bc-6082-4c35-abf6-0ce5cb603db2","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Shoe Size","value":"6.5"}],"off_ratio":22,"flashsale_info":[],"sales":0};
return `
`
}()}