Connect Modular Sofa
${function() {
const variantData = data.variant || {"id":"43925d96-d653-4530-b034-00e5ddd6feba","product_id":"4890ce0d-5d27-433d-9554-b7375609ad91","title":"Short Center-Remix 123","weight_unit":"lb","inventory_quantity":0,"sku":"MCONCMS-M156123","barcode":"1706524786138\/320","position":8,"option1":"Short Center","option2":"Remix 123","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1082b79d07cac24c807f17dff8584478.jpeg","path":"1082b79d07cac24c807f17dff8584478.jpeg","width":2048,"height":2048,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":1949,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"1949","retail_price":"0","available":true,"url":"\/products\/connect-modular-sofa-left-armrest?variant=43925d96-d653-4530-b034-00e5ddd6feba","available_quantity":999999999,"options":[{"name":"Section","value":"Short Center"},{"name":"Upholstery","value":"Remix 123"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Section:
Short Center
${function(){
const optName = "Section";
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}
`
}()}
Upholstery:
Remix 123
${function(){
const optName = "Upholstery";
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
$1,949.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":"43925d96-d653-4530-b034-00e5ddd6feba","product_id":"4890ce0d-5d27-433d-9554-b7375609ad91","title":"Short Center-Remix 123","weight_unit":"lb","inventory_quantity":0,"sku":"MCONCMS-M156123","barcode":"1706524786138\/320","position":8,"option1":"Short Center","option2":"Remix 123","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1082b79d07cac24c807f17dff8584478.jpeg","path":"1082b79d07cac24c807f17dff8584478.jpeg","width":2048,"height":2048,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":1949,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"1949","retail_price":"0","available":true,"url":"\/products\/connect-modular-sofa-left-armrest?variant=43925d96-d653-4530-b034-00e5ddd6feba","available_quantity":999999999,"options":[{"name":"Section","value":"Short Center"},{"name":"Upholstery","value":"Remix 123"}],"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 : MCONCMS-M156123
Barcode : 1706524786138/320
${function(){
const variantData = data.variant || {"id":"43925d96-d653-4530-b034-00e5ddd6feba","product_id":"4890ce0d-5d27-433d-9554-b7375609ad91","title":"Short Center-Remix 123","weight_unit":"lb","inventory_quantity":0,"sku":"MCONCMS-M156123","barcode":"1706524786138\/320","position":8,"option1":"Short Center","option2":"Remix 123","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1082b79d07cac24c807f17dff8584478.jpeg","path":"1082b79d07cac24c807f17dff8584478.jpeg","width":2048,"height":2048,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":1949,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"1949","retail_price":"0","available":true,"url":"\/products\/connect-modular-sofa-left-armrest?variant=43925d96-d653-4530-b034-00e5ddd6feba","available_quantity":999999999,"options":[{"name":"Section","value":"Short Center"},{"name":"Upholstery","value":"Remix 123"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}