(function () { const LOG = '[BeelittleProductsYouMayLike.js]'; const MAX_ITEMS = 10; const RELATED_ITEMS_URL = '/aalam/stock/item'; const ITEM_FIELDS = 'id,name,code,stock,stock_threshold,sale_price,sale_discount,type,name_unique,num_variants'; const PRODUCTS_PER_TYPE = 12; // From Item_Type_Relations.xlsx: item type -> [Related_Item_Type_1, Related_Item_Type_2]. // Products of the first related type are shown; the second is used only when the first has none in stock. const RELATED_TYPES = { 'A-Line Frock': ['Ind - A-Line Frock', 'Cotton Socks'], 'Alia Cut': ['Ind - Cotton Frock', 'Cotton Socks'], 'Applique Jabla': ['Muslin Nappy', 'Baby Briefs'], 'Baby Briefs': ['Muslin Nappy', 'Muslin Jabla'], 'Bandana Bib': ['Burp Cloth', 'Feeding Apron'], 'Bed Protector': ['Holding Sheet', 'Mat Bed'], 'Bed with Net': ['Thottil', 'Cotton Wrap Bed'], 'Bio-safe Diapers': ['Cloth Diapers', 'Muslin Nappy'], 'Brush And Comb Set': ['Muslin Hood Towel', 'Hello Baby Kit'], 'Burp Cloth': ['Bandana Bib', 'Feeding Apron'], 'Butterfly Frock': ['Ind - Frill Frock', 'Cotton Socks'], 'Carry Nest': ['Swaddle', 'Muslin Blanket'], 'Changing Mat': ['Bed Protector', 'Muslin Wipes'], 'Cloth Diapers': ['Bio-safe Diapers', 'Muslin Nappy'], 'Co-ord Sets': ['Girls Top', 'Woven Pant'], 'Collar Frock': ['Ind - Cotton Frock', 'Cotton Socks'], 'Combo Pant': ['T-Shirt', 'T-Shirt and Pant Set'], 'Cotton Cap Mittens and Booties': ['Organic Cotton Cap and Booties', 'Org Muslin Mittens and Booties'], 'Cotton Joggers': ['Sweat Shirt', 'T-Shirt and Pant Set'], 'Cotton Kimono Sweater and Pant': ['Organic Cotton Sweaters', 'Hoodie'], 'Cotton Mittens': ['Organic Cotton Cap and Booties', 'Organic Cotton Cap With Fold'], 'Cotton Socks': ['Org Muslin Mittens and Booties', 'Cotton Mittens'], 'Cotton Stuffed Toys': ['Rattles', 'Teether'], 'Cotton Wrap Bed': ['Mat Bed', 'Bed with Net'], 'Crinkle Frock': ['Ind - Cotton Frock', 'Cotton Socks'], 'Crinkled Set': ['Girls Top', 'Pant'], 'Crop Top And Wide Pant': ['Girls Top', 'Woven Pant'], 'Cut and Sew Frock': ['Ind - Cotton Frock', 'Cotton Socks'], 'Dhoti': ['Ind - Dhoti Set', 'Ind - Kurta Set With Dhoti'], 'Diaper Caddy': ['Gift Hamper', 'Medium Newborn essential kit'], 'Dohar': ['Toddler - Quilt and Blanket', 'Winter Throw'], 'Dungaree Frock': ['Dungarees', 'Cotton Socks'], 'Dungarees': ['Shirts', 'Rompers'], 'Feeding Apron': ['Bandana Bib', 'Burp Cloth'], 'Feeding Pillow': ['Maternity Wear', 'Feeding Apron'], 'Frock Triple Cloth Collection': ['Ind - Premium Cotton Frock', 'Cotton Socks'], 'FrockFS Triple Cloth Collection': ['Ind - Premium Cotton Frock', 'Cotton Socks'], 'Full Rompers': ['Jump Suits', 'Ind - Jump Suit'], 'Full sleeve T-Shirt': ['Pant', 'T-Shirt and Pant Set'], 'Gift Hamper': ['Gift Wrap', 'Milestone Cards'], 'Gift Wrap': ['Gift Hamper', 'Milestone Cards'], 'Girls Top': ['Pant', 'Girls Top and Pant'], 'Girls Top and Pant': ['Girls Top', 'Pant'], 'Girls Top and Shorts': ['Girls Top', 'Woven Shorts'], 'Hair Accessories': ['Knot Frock', 'Organic Cotton Cap With Fold'], 'Hakoba Frock': ['Ind - Embroidered Frock', 'Cotton Socks'], 'Half Sleeve Jabla and Shorts': ['V-Neck Jabla', 'Muslin Shorts'], 'Hello Baby Kit': ['Medium Newborn essential kit', 'Hospital Kit'], 'Henley Shirt and Pant': ['Henley Shirts', 'Pant'], 'Henley Shirts': ['Pant', 'Dhoti'], 'Herbal Dyed Jabla': ['Muslin Nappy', 'Baby Briefs'], 'Herbal Dyed Jabla and Shorts': ['Herbal Dyed Jabla', 'Muslin Shorts'], 'Holding Sheet': ['Bed Protector', 'Mat Bed'], 'Hoodie': ['Organic Cotton Sweaters', 'Cotton Kimono Sweater and Pant'], 'Hospital Kit': ['Medium Newborn essential kit', 'Hello Baby Kit'], 'Ikkat Frock': ['Ind - Kota Frock', 'Cotton Socks'], 'Ind - A-Line Frock': ['A-Line Frock', 'Cotton Socks'], 'Ind - Cap Sleeve Frock': ['Woven Cap Sleeve Frock', 'Cotton Socks'], 'Ind - Choli': ['Ind - Crop Top With Skirt', 'Ind - Skirt And Top'], 'Ind - Collar Panjakajam': ['Ind - Jabla With Panjakajam', 'Ind - Kurta Set'], 'Ind - Cotton Frock': ['Cut and Sew Frock', 'Cotton Socks'], 'Ind - Crop Top With Skirt': ['Ind - Skirt And Top', 'Ind - Choli'], 'Ind - Dhoti': ['Ind - Dhoti Set', 'Ind - Kurta Set With Dhoti'], 'Ind - Dhoti Set': ['Ind - Shirt', 'Ind - Kurta Set'], 'Ind - Embroidered Frock': ['Hakoba Frock', 'Cotton Socks'], 'Ind - Frill Frock': ['Woven Frill Frock', 'Cotton Socks'], 'Ind - Frock With Coat': ['Kimono Frock', 'Cotton Socks'], 'Ind - Fusion Jabla And Pant': ['Herbal Dyed Jabla', 'Ind - Side Placket Set'], 'Ind - Girls Top And Pant': ['Girls Top', 'Pant'], 'Ind - Halter Neck Frock': ['Strap Frock', 'Cotton Socks'], 'Ind - Indo Western Suit Set': ['Ind - Suit Set', 'Ind - Kurta Set'], 'Ind - Jabla With Panjakajam': ['Herbal Dyed Jabla', 'Ind - Kurta Set'], 'Ind - Jump Suit': ['Jump Suits', 'Rompers'], 'Ind - Kimono Frock': ['Kimono Frock', 'Cotton Socks'], 'Ind - Knot Frock': ['Knot Frock', 'Cotton Socks'], 'Ind - Kota Frock': ['Ikkat Frock', 'Cotton Socks'], 'Ind - Kurta Set': ['Kurta Set', 'Ind - Dhoti Set'], 'Ind - Kurta Set With Dhoti': ['Kurta Set', 'Ind - Dhoti Set'], 'Ind - Kurta Set With Waist Coat': ['Kurta Set With Waist Coat', 'Ind - Dhoti Set'], 'Ind - Organza Frock': ['Woven Net Frock', 'Cotton Socks'], 'Ind - Party Wears': ['Velvet Frock', 'Cotton Socks'], 'Ind - Premium Cotton Frock': ['Organic Cotton Bck Button Frock', 'Cotton Socks'], 'Ind - Scalloped Frock': ['Tiered Frock', 'Cotton Socks'], 'Ind - Shirt': ['Ind - Shorts', 'Ind - Shirt And Shorts'], 'Ind - Shirt And Shorts': ['Ind - Shirt', 'Ind - Shorts'], 'Ind - Short Kurta Set With Dhot': ['Ind - Kurta Set With Dhoti', 'Ind - Dhoti Set'], 'Ind - Shorts': ['Ind - Shirt', 'Ind - Shirt And Shorts'], 'Ind - Side Placket Set': ['Ind - Shirt', 'Ind - Shorts'], 'Ind - Skirt And Top': ['Ind - Crop Top With Skirt', 'Ind -Scalloped Top And Skirt'], 'Ind - Suit Set': ['Ind - Indo Western Suit Set', 'Ind - Kurta Set'], 'Ind - Tissue Frock': ['Velvet Frock', 'Cotton Socks'], 'Ind -Scalloped Top And Skirt': ['Ind - Skirt And Top', 'Ind - Scalloped Frock'], 'Infant Pillow': ['Pillow and Bolsters Set', 'Kapok Silk Bed Set'], 'Jabla and Pant Set': ['Organic Cotton Jabla', 'Pant'], 'Jaipur Knot Frock': ['Ind - Knot Frock', 'Cotton Socks'], 'Jaipur Tie-up Style Frock': ['Ind - Halter Neck Frock', 'Cotton Socks'], 'Jumbo Newborn essential kit': ['Hello Baby Kit', 'Hospital Kit'], 'Jump Suits': ['Rompers', 'Ind - Jump Suit'], 'Kapok Silk Bed Set': ['Infant Pillow', 'Pillow and Bolsters Set'], 'Kimono Frock': ['Ind - Kimono Frock', 'Cotton Socks'], 'Knitted Cap Sleeve Frock': ['Ind - Cap Sleeve Frock', 'Cotton Socks'], 'Knitted Frill Frock': ['Ind - Frill Frock', 'Cotton Socks'], 'Knitted Full Sleeve Frock': ['Ind - Cotton Frock', 'Cotton Socks'], 'Knitted Half Sleeve Frock': ['Ind - Cotton Frock', 'Cotton Socks'], 'Knitted Half Sleeve Jabla': ['Knitted Nappy', 'Baby Briefs'], 'Knitted Jabla And Shorts': ['Knitted Half Sleeve Jabla', 'Knitted Shorts'], 'Knitted Mittens': ['Organic Cotton Cap and Booties', 'Organic Cotton Cap With Fold'], 'Knitted Nappy': ['Knitted Half Sleeve Jabla', 'Cloth Diapers'], 'Knitted Pyjamas': ['Full sleeve T-Shirt', 'Pyjama Sets'], 'Knitted Shorts': ['T-Shirt', 'T-Shirt and Shorts Set'], 'Knitted Sleeveless Frock': ['Ind - Cotton Frock', 'Cotton Socks'], 'Knitted Sleeveless Jabla': ['Knitted Nappy', 'Baby Briefs'], 'Knitted Snap Button Jabla': ['Knitted Nappy', 'Baby Briefs'], 'Knitted Yoke Button Frock': ['Ind - Premium Cotton Frock', 'Cotton Socks'], 'Knot Frock': ['Ind - Knot Frock', 'Cotton Socks'], 'Knot Jabla': ['Muslin Nappy', 'Baby Briefs'], 'Kurta Set': ['Ind - Kurta Set', 'Ind - Dhoti Set'], 'Kurta Set With Waist Coat': ['Ind - Kurta Set With Waist Coat', 'Ind - Dhoti Set'], 'Laro Frock': ['Ind - Cotton Frock', 'Cotton Socks'], 'Linen Collection': ['Shirts', 'Shirt And Shorts'], 'Mandarin Shirt And Shorts': ['Shirts', 'Woven Shorts'], 'Masks': ['Muslin Wipes', 'Hospital Kit'], 'Mat Bed': ['Bed Protector', 'Holding Sheet'], 'Maternity Pads': ['Maternity Wear', 'Maternity Pant'], 'Maternity Pant': ['Maternity Wear', 'Maternity Pads'], 'Maternity Parallel Pant': ['Maternity Wear', 'Maternity Pads'], 'Maternity Wear': ['Maternity Pant', 'Feeding Apron'], 'Medium Newborn essential kit': ['Hello Baby Kit', 'Hospital Kit'], 'Milestone Cards': ['Nursery Decor Frames', 'Gift Hamper'], 'Mini Newborn essential kit': ['Hello Baby Kit', 'Hospital Kit'], 'MulMul Welcome Kit': ['Hello Baby Kit', 'Medium Newborn essential kit'], 'Mulmul Cotton Jabla': ['Muslin Nappy', 'Baby Briefs'], 'Mulmul Jabla and Shorts': ['Mulmul Cotton Jabla', 'Muslin Shorts'], 'Mulmul Top and Bottom Set': ['Mulmul Cotton Jabla', 'Muslin Shorts'], 'Muslin Blanket': ['Swaddle', 'Dohar'], 'Muslin Carry Nest': ['Swaddle', 'Muslin Blanket'], 'Muslin Frock': ['Ind - Cotton Frock', 'Cotton Socks'], 'Muslin Hood Towel': ['Muslin Towel', 'Cotton Mittens'], 'Muslin Jabla': ['Muslin Nappy', 'Baby Briefs'], 'Muslin Jabla Nappy and Shorts': ['Muslin Jabla and Nappy', 'Muslin Shorts'], 'Muslin Jabla and Nappy': ['Muslin Jabla', 'Muslin Nappy'], 'Muslin Jabla and Shorts': ['Muslin Jabla', 'Muslin Shorts'], 'Muslin Nappy': ['Muslin Jabla', 'Cloth Diapers'], 'Muslin Shorts': ['Muslin Jabla', 'Muslin Jabla and Shorts'], 'Muslin Sleeveless Frock': ['Ind - Cotton Frock', 'Cotton Socks'], 'Muslin Top and Bottom Set': ['Muslin Jabla', 'Muslin Shorts'], 'Muslin Towel': ['Muslin Hood Towel', 'Muslin Blanket'], 'Muslin Wipes': ['Bio-safe Diapers', 'Cloth Diapers'], 'Neem Detergent Soap': ['Cloth Diapers', 'Muslin Blanket'], 'Nursery Decor Frames': ['Milestone Cards', 'Gift Hamper'], 'Onesie': ['Jump Suits', 'Ind - Jump Suit'], 'Org Cotton Snap Button Jabla': ['Muslin Nappy', 'Baby Briefs'], 'Org Muslin Mittens and Booties': ['Organic Cotton Cap and Booties', 'Cotton Cap Mittens and Booties'], 'Organic Cotton Bck Button Frock': ['Ind - Premium Cotton Frock', 'Cotton Socks'], 'Organic Cotton Cap With Fold': ['Cotton Mittens', 'Organic Cotton Cap and Booties'], 'Organic Cotton Cap and Booties': ['Org Muslin Mittens and Booties', 'Cotton Cap Mittens and Booties'], 'Organic Cotton Jabla': ['Muslin Nappy', 'Baby Briefs'], 'Organic Cotton Jabla and Shorts': ['Organic Cotton Jabla', 'Muslin Shorts'], 'Organic Cotton Knot Frock': ['Ind - Knot Frock', 'Cotton Socks'], 'Organic Cotton Sweaters': ['Hoodie', 'Cotton Kimono Sweater and Pant'], 'Pant': ['T-Shirt', 'T-Shirt and Pant Set'], 'Pillow and Bolsters Set': ['Infant Pillow', 'Kapok Silk Bed Set'], 'Pleat Frock': ['Ind - Scalloped Frock', 'Cotton Socks'], 'Pocket Frock': ['Ind - Cotton Frock', 'Cotton Socks'], 'Polo Tees': ['Woven Shorts', 'T-Shirt and Shorts Set'], 'Pyjama Sets': ['Full sleeve T-Shirt', 'Knitted Pyjamas'], 'Rattles': ['Teether', 'Wooden Toys'], 'Rayon Frock': ['Ind - Premium Cotton Frock', 'Cotton Socks'], 'Reversible Shirts': ['Woven Shorts', 'Dhoti'], 'Reversible V-Neck Jabla': ['Muslin Nappy', 'Baby Briefs'], 'Romper Triple Cloth Collection': ['Jump Suits', 'Ind - Jump Suit'], 'Rompers': ['Jump Suits', 'Ind - Jump Suit'], 'Set Triple Cloth Collection': ['T-Shirt', 'Woven Shorts'], 'Shirt And Shorts': ['Shirts', 'Woven Shorts'], 'Shirts': ['Woven Shorts', 'Dhoti'], 'Shoulder Button Jabla': ['Muslin Nappy', 'Baby Briefs'], 'Side Placket Shirt And Shorts': ['Shirts', 'Woven Shorts'], 'Skirt and Top Ethnic Wear': ['Ind - Skirt And Top', 'Ind - Crop Top With Skirt'], 'Sleeping Bag': ['Swaddle', 'Muslin Blanket'], 'Sleepsuits': ['Jump Suits', 'Ind - Jump Suit'], 'Sleeveless Top and Skirt': ['Girls Top', 'Smocking Top and Bottom'], 'Sleeveless shirt and shorts': ['Shirts', 'Woven Shorts'], 'Smocking Top and Bottom': ['Girls Top', 'Pant'], 'Stand Collar Shirt And Shorts': ['Shirts', 'Woven Shorts'], 'Strap Frock': ['Ind - Halter Neck Frock', 'Cotton Socks'], 'Swaddle': ['Muslin Blanket', 'Sleeping Bag'], 'Sweat Shirt': ['Hoodie', 'Cotton Kimono Sweater and Pant'], 'T-Shirt': ['Knitted Shorts', 'T-Shirt and Shorts Set'], 'T-Shirt Boys': ['Knitted Shorts', 'T-Shirt and Shorts Set'], 'T-Shirt Girls': ['Pant', 'Girls Top and Pant'], 'T-Shirt and Pant Set': ['T-Shirt', 'Pant'], 'T-Shirt and Shorts Set': ['T-Shirt', 'Knitted Shorts'], 'Teether': ['Rattles', 'Wooden Toys'], 'Terry Top and Shorts Set': ['T-Shirt', 'Knitted Shorts'], 'Thermos Flask': ['Hospital Kit', 'Medium Newborn essential kit'], 'Thottil': ['Bed with Net', 'Muslin Blanket'], 'Tiered Frock': ['Ind - Frill Frock', 'Cotton Socks'], 'Toddler - Quilt and Blanket': ['Dohar', 'Muslin Blanket'], 'Top and Pant KTP': ['T-Shirt', 'Pant'], 'Top and Pant PTP': ['T-Shirt', 'Pant'], 'Top and Pant Set': ['T-Shirt', 'Pant'], 'Top and Pant WFJP': ['T-Shirt', 'Pant'], 'Triple Cloth Jabla and Shorts': ['V-Neck Jabla', 'Woven Shorts'], 'Triple Layer Frock': ['Ind - Frill Frock', 'Cotton Socks'], 'Turtle Neck T-Shirt': ['Pant', 'T-Shirt and Pant Set'], 'Ultra Slim Snap Button Shirt': ['Woven Shorts', 'Dhoti'], 'V-Neck Frocks': ['Ind - Cotton Frock', 'Cotton Socks'], 'V-Neck Jabla': ['Muslin Nappy', 'Baby Briefs'], 'Velvet Frock': ['Ind - Party Wears', 'Cotton Socks'], 'Vericated Rib Sleeveless Frock': ['Ind - Cotton Frock', 'Cotton Socks'], 'Vest and Shorts': ['Vests', 'Knitted Shorts'], 'Vests': ['Knitted Shorts', 'Vest and Shorts'], 'Waffled Sets': ['T-Shirt', 'Pant'], 'Wide Fit T-Shirt': ['Knitted Shorts', 'T-Shirt and Shorts Set'], 'Winter Throw': ['Toddler - Quilt and Blanket', 'Dohar'], 'Wooden Toys': ['Rattles', 'Teether'], 'Woven Cap Sleeve Frock': ['Ind - Cap Sleeve Frock', 'Cotton Socks'], 'Woven Frill Frock': ['Ind - Frill Frock', 'Cotton Socks'], 'Woven Full Sleeve Frock': ['Ind - Frock With Coat', 'Cotton Socks'], 'Woven Half Sleeve Frock': ['Ind - Cotton Frock', 'Cotton Socks'], 'Woven Net Frock': ['Ind - Organza Frock', 'Cotton Socks'], 'Woven Pant': ['Shirts', 'Top and Pant Set'], 'Woven Rompers': ['Jump Suits', 'Ind - Jump Suit'], 'Woven Shorts': ['Shirts', 'Shirt And Shorts'], 'Woven Sleeveless Frock': ['Ind - Cotton Frock', 'Cotton Socks'], 'Woven Yoke Frock': ['Ind - Premium Cotton Frock', 'Cotton Socks'] }; // Compare type names ignoring case and stray spaces ("Ind -Scalloped" matches "Ind - Scalloped") function typeKey(name) { return String(name || '').toLowerCase().replace(/\s*-\s*/g, '-').replace(/\s+/g, ' ').trim(); } const RELATED_BY_TYPE = new Map(Object.entries(RELATED_TYPES).map(([type, related]) => [typeKey(type), related])); function getJSON(url) { return fetch(url, { method: 'GET', credentials: 'include', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' } }).then((response) => { if (!response.ok) throw new Error(`${response.status} ${url}`); return response.json(); }); } function currentItemId() { return Number(new URLSearchParams(window.location.search).get('id')) || null; } function typeId(type) { return type != null && typeof type === 'object' ? type.id : type; } function productKey(item) { return String(item.name || item.name_unique || item.id).trim().toLowerCase(); } function pickProducts(current, response) { const current_key = current.name ? productKey(current) : null; const unique = new Map(); const items = Array.isArray(response) ? response.flatMap((entry) => entry && Array.isArray(entry.items) ? entry.items : [entry]) : []; items.forEach((item) => { if (!item || item.id == null) return; if (Number(item.id) === Number(current.id) || (Number(item.stock) || 0) <= 0) return; const key = productKey(item); if (key === current_key) return; // same product in another size const seen = unique.get(key); if (!seen || (!(Number(seen.num_variants) > 0) && Number(item.num_variants) > 0)) unique.set(key, item); }); return [...unique.values()].slice(0, MAX_ITEMS); } async function fetchRelatedProducts(item_id, related_type) { const params = new URLSearchParams({ fields: ITEM_FIELDS, type: related_type, max: String(PRODUCTS_PER_TYPE) }); const response = await getJSON(`${RELATED_ITEMS_URL}/${encodeURIComponent(item_id)}/related?${params}`); if (!Array.isArray(response)) throw new Error(`Invalid related items response for type ${related_type}`); return response; } async function pickRelated(current) { const current_type_name = current.type_name; const related_names = RELATED_BY_TYPE.get(typeKey(current_type_name)) || []; for (const related_name of related_names) { const candidates = await fetchRelatedProducts(current.id, related_name); const items = pickProducts(current, candidates); if (items.length) return { type: related_name, items }; } return { type: current_type_name, items: [] }; } class ProductYouMayLikeComponent extends HTMLElement { static get observedAttributes() { return ['item_id', 'type_id', 'item_name', 'type_name']; } get item_id() { return this._item_id; } set item_id(value) { if (this._item_id === value) return; this._item_id = value; this.loadIfConnected(); } get type_id() { return this._type_id; } set type_id(value) { if (this._type_id === value) return; this._type_id = value; this.loadIfConnected(); } get item_name() { return this._item_name; } set item_name(value) { if (this._item_name === value) return; this._item_name = value; this.loadIfConnected(); } get type_name() { return this._type_name; } set type_name(value) { if (this._type_name === value) return; this._type_name = value; this.loadIfConnected(); } attributeChangedCallback(name, oldValue, newValue) { if (oldValue === newValue) return; this[`_${name}`] = newValue; this.loadIfConnected(); } loadIfConnected() { if (this.isConnected && window.related_items_state) this.load(); } connectedCallback() { if (!window.related_items_state) { console.log(LOG, 'no related_items_state, aborting'); return; } this.load(); } disconnectedCallback() { this.load_no = (this.load_no || 0) + 1; } async load() { const item_id = Number(this.item_id || this.getAttribute('item_id')) || currentItemId(); const passed_type_id = this.type_id != null ? this.type_id : this.getAttribute('type_id'); const item_name = this.item_name || this.getAttribute('item_name'); const type_name = this.type_name || this.getAttribute('type_name'); const load_no = this.load_no = (this.load_no || 0) + 1; try { if (!item_id) { window.related_items_state[1]([]); return; } let current = { id: item_id, name: item_name, type_name, type: passed_type_id }; if (!type_name) { const fetched = await getJSON(`/aalam/stock/item/${item_id}`); current = { ...current, ...fetched }; } current.id = item_id; current.name = current.name || item_name; current.type_name = current.type_name || type_name; const picked = await pickRelated(current); const related = picked.items .map((item) => ({ id: item.id, name: item.name, num_variants: item.num_variants != null ? item.num_variants : 0, stock: item.stock, vrnt_stock: item.stock, sale_price: item.sale_price, sale_discount: item.sale_discount })); if (this.load_no !== load_no) return; // shopper already moved to another product console.log(LOG, 'current item', item_id, 'type', current.type_name || typeId(current.type), 'showing type', picked.type, 'related items', related); window.related_items_state[1](related); } catch (error) { console.error(LOG, 'failed loading related items', error); if (this.load_no === load_no) window.related_items_state[1]([]); } } } if (!customElements.get('product-you-may-like')) { customElements.define('product-you-may-like', ProductYouMayLikeComponent); } })();
  • 10,00,000+ parents trust Beelittle.
  • 10+ years of dressing little ones.
  • Free shipping on ₹2999+ orders.
  • Cash on Delivery available.

Organic Baby Briefs Newborn

No filter Available

No products found.

Sort
    • ₹NaN   -   ₹NaN