Nordic Creative Sofa Side Table - Wood - Perfect For A Side Table
${function() {
const variantData = data.variant || {"id":"6f992dc4-9c0a-4b27-b425-71c2b4a97a9c","product_id":"2df7b50c-a496-4a11-92a0-2289b9c06c3a","title":"Burlywood","weight_unit":"kg","inventory_quantity":1000,"sku":"2147071528371","barcode":"","position":1,"option1":"Burlywood","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":14.88,"min_quantity":1}],"weight":"0","compare_at_price":"265.41","price":"14.88","retail_price":"265.41","available":true,"url":"\/products\/nordic-creative-sofa-side-table-wood?variant=6f992dc4-9c0a-4b27-b425-71c2b4a97a9c","available_quantity":999999999,"options":[{"name":"COLOR","value":"Burlywood"}],"off_ratio":94,"flashsale_info":[],"sales":68};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
${function() {
const minInventory = parseInt('3');
const maxInventory = parseInt('88');
const randomInventory = Math.round(Math.random() * (maxInventory - minInventory)) + minInventory;
const customText = "Only {stock} item(s) left in stock!".replace(/\{stock\}/g, '' + randomInventory + ' ');
const barWidth = (randomInventory / maxInventory) * 100 + '%';
return `
`;
}()}
Color:
Burlywood
${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
$14.88
${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":"6f992dc4-9c0a-4b27-b425-71c2b4a97a9c","product_id":"2df7b50c-a496-4a11-92a0-2289b9c06c3a","title":"Burlywood","weight_unit":"kg","inventory_quantity":1000,"sku":"2147071528371","barcode":"","position":1,"option1":"Burlywood","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":14.88,"min_quantity":1}],"weight":"0","compare_at_price":"265.41","price":"14.88","retail_price":"265.41","available":true,"url":"\/products\/nordic-creative-sofa-side-table-wood?variant=6f992dc4-9c0a-4b27-b425-71c2b4a97a9c","available_quantity":999999999,"options":[{"name":"COLOR","value":"Burlywood"}],"off_ratio":94,"flashsale_info":[],"sales":68};
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":"6f992dc4-9c0a-4b27-b425-71c2b4a97a9c","product_id":"2df7b50c-a496-4a11-92a0-2289b9c06c3a","title":"Burlywood","weight_unit":"kg","inventory_quantity":1000,"sku":"2147071528371","barcode":"","position":1,"option1":"Burlywood","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":14.88,"min_quantity":1}],"weight":"0","compare_at_price":"265.41","price":"14.88","retail_price":"265.41","available":true,"url":"\/products\/nordic-creative-sofa-side-table-wood?variant=6f992dc4-9c0a-4b27-b425-71c2b4a97a9c","available_quantity":999999999,"options":[{"name":"COLOR","value":"Burlywood"}],"off_ratio":94,"flashsale_info":[],"sales":68};
return `
`
}()}