- •••
- Buy Now & Pay Later With
-
- •••
- Free Delivery For Orders Above 30 KD
- •••
- Buy Now & Pay Later With
-
- •••
- Buy Now & Pay Later With
-
- •••
- Free Delivery For Orders Above 30 KD
- •••
- Buy Now & Pay Later With
-
Dining Tables
View All {
productData = value;
const variant = $event.detail.variantId ? productData.variants.find((variant) => {return variant.id == $event.detail.variantId}) : null;
featuredVariants = productData.variants ? productData.variants.filter((variant) => variant?.featured_image?.src).slice(0, 5) : [];
selectedVariant = variant ? variant : productData.variants[0];
$dispatch('update-quick-buy-swiper', { slide: selectedVariant?.featured_image?.position || 1 });
productDataSet = true;
});
});
Promise.resolve(getProductMeta(productHandle)).then(function(value) {
$nextTick(() => {
productMetaData = value;
if(designerBrandText=='') {
if(productMetaData.designer) { designerBrandText = productMetaData.designer }
if(productMetaData.designer && productMetaData.brand) { designerBrandText += ' for ' }
if(productMetaData.brand) { designerBrandText += productMetaData.brand; }
}
if(shortDescription=='') {
shortDescription = productMetaData.short_description;
}
});
});
Promise.resolve(getProductCustomMeta(productHandle)).then(function(value) {
$nextTick(() => {
productCustomMetaData = value;
if(productCustomMetaData.hasOwnProperty('minimum_order_quantity')) {
minimumOrderQuantity = parseInt(productCustomMetaData.minimum_order_quantity);
qty = parseInt(productCustomMetaData.minimum_order_quantity);
} else {
minimumOrderQuantity = 1;
qty = 1;
}
if(productCustomMetaData.hasOwnProperty('quantity_increment')) {
quantityIncrement = productCustomMetaData.quantity_increment;
} else {
quantityIncrement = 1;
}
});
});
Promise.resolve(getProductVariantInventory(productHandle)).then(function(value) {
$nextTick(() => {
productVariantInventory = value;
variantInventory = productVariantInventory;
variantInventory.forEach(function (variantitem, variantindex) {
productData.variants.forEach(function (item, index) {
if(variantitem.id == item.id) {
productData.variants[index]['inventory'] = variantitem.inventory;
}
});
});
});
});
"
@close-modals.window="showModal = false"
x-cloak
>