${function() {
const variantData = data.variant || {"id":"6bf8162c-be00-4e90-9b1f-a0b32beed234","product_id":"f83ed146-c560-4cc5-8065-ce291c36c345","title":"White-US 8 \/ EU 39","weight_unit":"kg","inventory_quantity":1000,"sku":"MP2061810-\u767d\u827239","barcode":"","position":1,"option1":"White","option2":"US 8 \/ EU 39","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/752ed8e06a3d81b4853d9ad93398dc6c.jpg","path":"752ed8e06a3d81b4853d9ad93398dc6c.jpg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":57.95,"min_quantity":1}],"weight":"0","compare_at_price":"97.95","price":"57.95","retail_price":"97.95","available":true,"url":"\/products\/a5211-new-couple-comfortable-casual-sneakers20490cef-31d5-4d50-90c4-d908fb78d387?variant=6bf8162c-be00-4e90-9b1f-a0b32beed234","available_quantity":999999999,"options":[{"name":"Color","value":"White"},{"name":"Size","value":"US 8 \/ EU 39"}],"off_ratio":41,"flashsale_info":[],"sales":0};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Color
: White
${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
: US 8 / EU 39
${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
$57.95
${function(){
const wholesale_enabled = false;
const qty = data.quantity || 1;
const currentSelectVariant = data.variant;
const defaultVariant = (data.product && data.product.variants && data.product.variants[0]);
const productVariant = {"id":"6bf8162c-be00-4e90-9b1f-a0b32beed234","product_id":"f83ed146-c560-4cc5-8065-ce291c36c345","title":"White-US 8 \/ EU 39","weight_unit":"kg","inventory_quantity":1000,"sku":"MP2061810-\u767d\u827239","barcode":"","position":1,"option1":"White","option2":"US 8 \/ EU 39","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/752ed8e06a3d81b4853d9ad93398dc6c.jpg","path":"752ed8e06a3d81b4853d9ad93398dc6c.jpg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":57.95,"min_quantity":1}],"weight":"0","compare_at_price":"97.95","price":"57.95","retail_price":"97.95","available":true,"url":"\/products\/a5211-new-couple-comfortable-casual-sneakers20490cef-31d5-4d50-90c4-d908fb78d387?variant=6bf8162c-be00-4e90-9b1f-a0b32beed234","available_quantity":999999999,"options":[{"name":"Color","value":"White"},{"name":"Size","value":"US 8 \/ EU 39"}],"off_ratio":41,"flashsale_info":[],"sales":0};
const variantData = currentSelectVariant || defaultVariant || productVariant;
const wholesale_price = variantData.wholesale_price || [];
if(wholesale_enabled && wholesale_price.length > 0) {
let wholesaleIndex = wholesale_price.findIndex(item => {
return item.min_quantity > qty;
});
if(wholesaleIndex < 0){
wholesaleIndex = wholesale_price.length - 1;
}else if(wholesaleIndex > 0){
wholesaleIndex = wholesaleIndex - 1;
}
const wholesalePrice = wholesale_price[wholesaleIndex] || '';
return `
`
}else {
const price = variantData && variantData.price;
return price != undefined ? `
` : ' ';
}
}()}
Buy now
Product was out of stock.
Product is unavailable.