${function() {
const variantData = data.variant || {"id":"06cecfc6-0e95-4b05-b3b4-dc3a16055226","product_id":"908e97d5-3138-404d-9f2b-cd21f0633ed0","title":"5\/5.5-Multicolor","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"5\/5.5","option2":"Multicolor","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6dfea256e0c5d6fad8dec09ac24a57bf.jpeg","path":"6dfea256e0c5d6fad8dec09ac24a57bf.jpeg","width":750,"height":1000,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":35,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"35","retail_price":"0","available":true,"url":"\/products\/lace-up-knit-breathable-sneakers83eeb1b4-b4cd-448a-8471-8af1d29c5eba33a27541-0d74-4191-989c-605122412bbf?variant=06cecfc6-0e95-4b05-b3b4-dc3a16055226","available_quantity":999999999,"options":[{"name":"Size","value":"5\/5.5"},{"name":"Color","value":"Multicolor"}],"off_ratio":0,"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 + '%'
: ` `
)}
`;
}()}
Size
: 5/5.5
${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}
`
}()}
Color
: Multicolor
${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}
`
}()}
Add to cart
$35.00
${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":"06cecfc6-0e95-4b05-b3b4-dc3a16055226","product_id":"908e97d5-3138-404d-9f2b-cd21f0633ed0","title":"5\/5.5-Multicolor","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"5\/5.5","option2":"Multicolor","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6dfea256e0c5d6fad8dec09ac24a57bf.jpeg","path":"6dfea256e0c5d6fad8dec09ac24a57bf.jpeg","width":750,"height":1000,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":35,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"35","retail_price":"0","available":true,"url":"\/products\/lace-up-knit-breathable-sneakers83eeb1b4-b4cd-448a-8471-8af1d29c5eba33a27541-0d74-4191-989c-605122412bbf?variant=06cecfc6-0e95-4b05-b3b4-dc3a16055226","available_quantity":999999999,"options":[{"name":"Size","value":"5\/5.5"},{"name":"Color","value":"Multicolor"}],"off_ratio":0,"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.
${function(){
const variantData = data.variant || {"id":"06cecfc6-0e95-4b05-b3b4-dc3a16055226","product_id":"908e97d5-3138-404d-9f2b-cd21f0633ed0","title":"5\/5.5-Multicolor","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"5\/5.5","option2":"Multicolor","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6dfea256e0c5d6fad8dec09ac24a57bf.jpeg","path":"6dfea256e0c5d6fad8dec09ac24a57bf.jpeg","width":750,"height":1000,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":35,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"35","retail_price":"0","available":true,"url":"\/products\/lace-up-knit-breathable-sneakers83eeb1b4-b4cd-448a-8471-8af1d29c5eba33a27541-0d74-4191-989c-605122412bbf?variant=06cecfc6-0e95-4b05-b3b4-dc3a16055226","available_quantity":999999999,"options":[{"name":"Size","value":"5\/5.5"},{"name":"Color","value":"Multicolor"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
people are viewing this right now