Ultimate Sack 4000 (4 ft.) Bean Bag Chair with Footstool (Bundle)
${function() {
const variantData = data.variant || {"id":"f61f012a-ecbd-4f09-b2f4-6b1833eccf57","product_id":"c5d228e4-0cec-4c1f-9fa4-05a6090126ee","title":"Suede-Grey Suede","weight_unit":"kg","inventory_quantity":1000,"sku":"CHA-4000-GREY-SUEDE-FS","barcode":"","position":1,"option1":"Suede","option2":"Grey Suede","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ef9edbf42c3a3fca6bacce8f9405e4b0.png","path":"ef9edbf42c3a3fca6bacce8f9405e4b0.png","width":2000,"height":2000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":194.99,"min_quantity":1}],"weight":"0","compare_at_price":"278.56","price":"194.99","retail_price":"278.56","available":true,"url":"\/products\/4000bundle?variant=f61f012a-ecbd-4f09-b2f4-6b1833eccf57","available_quantity":999999999,"options":[{"name":"Fabric","value":"Suede"},{"name":"Color","value":"Grey Suede"}],"off_ratio":30,"flashsale_info":[],"sales":0};
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 `
`;
}()}
Fabric:
Suede
${function(){
const optName = "Fabric";
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:
Grey Suede
${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
$194.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":"f61f012a-ecbd-4f09-b2f4-6b1833eccf57","product_id":"c5d228e4-0cec-4c1f-9fa4-05a6090126ee","title":"Suede-Grey Suede","weight_unit":"kg","inventory_quantity":1000,"sku":"CHA-4000-GREY-SUEDE-FS","barcode":"","position":1,"option1":"Suede","option2":"Grey Suede","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ef9edbf42c3a3fca6bacce8f9405e4b0.png","path":"ef9edbf42c3a3fca6bacce8f9405e4b0.png","width":2000,"height":2000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":194.99,"min_quantity":1}],"weight":"0","compare_at_price":"278.56","price":"194.99","retail_price":"278.56","available":true,"url":"\/products\/4000bundle?variant=f61f012a-ecbd-4f09-b2f4-6b1833eccf57","available_quantity":999999999,"options":[{"name":"Fabric","value":"Suede"},{"name":"Color","value":"Grey Suede"}],"off_ratio":30,"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":"f61f012a-ecbd-4f09-b2f4-6b1833eccf57","product_id":"c5d228e4-0cec-4c1f-9fa4-05a6090126ee","title":"Suede-Grey Suede","weight_unit":"kg","inventory_quantity":1000,"sku":"CHA-4000-GREY-SUEDE-FS","barcode":"","position":1,"option1":"Suede","option2":"Grey Suede","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ef9edbf42c3a3fca6bacce8f9405e4b0.png","path":"ef9edbf42c3a3fca6bacce8f9405e4b0.png","width":2000,"height":2000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":194.99,"min_quantity":1}],"weight":"0","compare_at_price":"278.56","price":"194.99","retail_price":"278.56","available":true,"url":"\/products\/4000bundle?variant=f61f012a-ecbd-4f09-b2f4-6b1833eccf57","available_quantity":999999999,"options":[{"name":"Fabric","value":"Suede"},{"name":"Color","value":"Grey Suede"}],"off_ratio":30,"flashsale_info":[],"sales":0};
return `
`
}()}