Neighbor Loafers
${function() {
const variantData = data.variant || {"id":"e639a881-9309-486a-9326-07d8d81ef6aa","product_id":"ec96f986-ad08-4103-8e67-b1a8e9e79ca6","title":"Spruce-5","weight_unit":"lb","inventory_quantity":2,"sku":"LASHOE-NEIGHB-SPR-5","barcode":"","position":1,"option1":"Spruce","option2":"5","option3":"","note":"","image":null,"wholesale_price":[{"price":199,"min_quantity":1}],"weight":"2.6","compare_at_price":"0","price":"199","retail_price":"0","available":true,"url":"\/products\/neighbor-loafers-dark-green?variant=e639a881-9309-486a-9326-07d8d81ef6aa","available_quantity":2,"options":[{"name":"Color","value":"Spruce"},{"name":"Size","value":"5"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Color:
Spruce
${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:
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}
`
}()}
Add to cart
$199.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":"e639a881-9309-486a-9326-07d8d81ef6aa","product_id":"ec96f986-ad08-4103-8e67-b1a8e9e79ca6","title":"Spruce-5","weight_unit":"lb","inventory_quantity":2,"sku":"LASHOE-NEIGHB-SPR-5","barcode":"","position":1,"option1":"Spruce","option2":"5","option3":"","note":"","image":null,"wholesale_price":[{"price":199,"min_quantity":1}],"weight":"2.6","compare_at_price":"0","price":"199","retail_price":"0","available":true,"url":"\/products\/neighbor-loafers-dark-green?variant=e639a881-9309-486a-9326-07d8d81ef6aa","available_quantity":2,"options":[{"name":"Color","value":"Spruce"},{"name":"Size","value":"5"}],"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.
Sku : LASHOE-NEIGHB-SPR-5
Weight : 2.6lb
${function(){
const variantData = data.variant || {"id":"e639a881-9309-486a-9326-07d8d81ef6aa","product_id":"ec96f986-ad08-4103-8e67-b1a8e9e79ca6","title":"Spruce-5","weight_unit":"lb","inventory_quantity":2,"sku":"LASHOE-NEIGHB-SPR-5","barcode":"","position":1,"option1":"Spruce","option2":"5","option3":"","note":"","image":null,"wholesale_price":[{"price":199,"min_quantity":1}],"weight":"2.6","compare_at_price":"0","price":"199","retail_price":"0","available":true,"url":"\/products\/neighbor-loafers-dark-green?variant=e639a881-9309-486a-9326-07d8d81ef6aa","available_quantity":2,"options":[{"name":"Color","value":"Spruce"},{"name":"Size","value":"5"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}