${function() {
const variantData = data.variant || {"id":"ea10ee29-bda7-48e6-9066-c0d1f4b79f48","product_id":"da6d7e49-ce46-4d1b-b6dc-d9f66541f708","title":"Khaki-39","weight_unit":"kg","inventory_quantity":1000,"sku":"12906288398","barcode":"","position":1,"option1":"Khaki","option2":"39","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4ae91fc25b13ede42b4b53dd18463b87.jpeg","path":"4ae91fc25b13ede42b4b53dd18463b87.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"79.99","price":"39.99","retail_price":"79.99","available":true,"url":"\/products\/simple-and-versatile-couple-shoes-casual-shoes-mens-shoes71aa9e38-849c-4b57-8176-f7fb0ccedd621311ddac-96e6-446d-b5d0-dc38f9b2b0f0?variant=ea10ee29-bda7-48e6-9066-c0d1f4b79f48","available_quantity":999999999,"options":[{"name":"Color","value":"Khaki"},{"name":"Size","value":"39"}],"off_ratio":50,"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
: Khaki
${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
: 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
$39.99
${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":"ea10ee29-bda7-48e6-9066-c0d1f4b79f48","product_id":"da6d7e49-ce46-4d1b-b6dc-d9f66541f708","title":"Khaki-39","weight_unit":"kg","inventory_quantity":1000,"sku":"12906288398","barcode":"","position":1,"option1":"Khaki","option2":"39","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4ae91fc25b13ede42b4b53dd18463b87.jpeg","path":"4ae91fc25b13ede42b4b53dd18463b87.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"79.99","price":"39.99","retail_price":"79.99","available":true,"url":"\/products\/simple-and-versatile-couple-shoes-casual-shoes-mens-shoes71aa9e38-849c-4b57-8176-f7fb0ccedd621311ddac-96e6-446d-b5d0-dc38f9b2b0f0?variant=ea10ee29-bda7-48e6-9066-c0d1f4b79f48","available_quantity":999999999,"options":[{"name":"Color","value":"Khaki"},{"name":"Size","value":"39"}],"off_ratio":50,"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.