item_group_id Glamour Gallery
Women Sleepware (Trendify) Women Sleepware (Trendify) Women Sleepware (Trendify) Women Sleepware (Trendify) Women Sleepware (Trendify) Women Sleepware (Trendify) Women Sleepware (Trendify) Women Sleepware (Trendify) Women Sleepware (Trendify) Women Sleepware (Trendify)
Women Sleepware (Trendify)

Women Sleepware (Trendify)

SKU: SKU-0027

Price: Tk

Colour:

  • Brand: RiraRi

✨ Elevate your nighttime comfort with our stylish women's nightwear collection! Soft, breathable, and designed for a perfect fit—experience ultimate relaxation every night. Shop now for dreamy sleepwear! 🌙💤"

- +
Tk

This Variation is unavailable. Please choose another one!

\n\n\n
\n
\n Watch the video\n
\n
","videoPosition":"bottom_product_description","stockAlert":100,"condition":1,"availability":1,"price":0,"discountType":"flat","discountprice":0,"discountVal":0,"variationManager":[{"_id":"66e444f83d2fae32350b264d","title":"Colour","type":"list","values":[{"_id":"66e444f83d2fae32350b264e","val":"Ash Pink","color":null},{"_id":"66e444f83d2fae32350b264f","val":"Ash","color":null},{"_id":"66e444f83d2fae32350b2650","val":"Black","color":null},{"_id":"66e444f83d2fae32350b2651","val":"Lavender","color":null},{"_id":"66e444f83d2fae32350b2652","val":"Misty Pink","color":null},{"_id":"66e444f83d2fae32350b2653","val":"Marron","color":null},{"_id":"66e444f83d2fae32350b2654","val":"Navy","color":null},{"_id":"66e444f83d2fae32350b2655","val":"Olive","color":null},{"_id":"66e444f83d2fae32350b2656","val":"White","color":null},{"_id":"66e444f83d2fae32350b2657","val":"White Lavender","color":null}]}],"variationMatrix":[{"visibility":true,"_id":"66e444f83d2fae32350b2658","title":"Ash Pink","sku_id":"0","image":"1.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b2659","title":"Colour","val":"Ash Pink","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b265a","title":"Ash","sku_id":"1","image":"10.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b265b","title":"Colour","val":"Ash","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b265c","title":"Black","sku_id":"2","image":"9.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b265d","title":"Colour","val":"Black","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b265e","title":"Lavender","sku_id":"3","image":"8.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b265f","title":"Colour","val":"Lavender","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b2660","title":"Misty Pink","sku_id":"4","image":"2.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b2661","title":"Colour","val":"Misty Pink","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b2662","title":"Marron","sku_id":"5","image":"7.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b2663","title":"Colour","val":"Marron","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b2664","title":"Navy","sku_id":"6","image":"6.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b2665","title":"Colour","val":"Navy","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b2666","title":"Olive","sku_id":"7","image":"5.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b2667","title":"Colour","val":"Olive","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b2668","title":"White","sku_id":"8","image":"4.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b2669","title":"Colour","val":"White","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b266a","title":"White Lavender","sku_id":"9","image":"3.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b266b","title":"Colour","val":"White Lavender","color":null}],"availability":1}],"deliveryType":"flat-rate","hotdeal":"on","latest":"off","special":"on","metaTitle":null,"metakeyWords":null,"metaDesc":null,"productid":"SKU-0027","createTime":"Fri Sep 13 2024 19:58:16 GMT+0600 (Bangladesh Standard Time)","updateTime":"Fri Sep 13 2024 19:58:16 GMT+0600 (Bangladesh Standard Time)"})' class="btn btn-primary w-full submit-btn border-0" style="background-color: rgba(63, 81, 181, 1);" :disabled="$store.store.data.showMessage" > Add to Cart
\n\n\n
\n
\n Watch the video\n
\n
","videoPosition":"bottom_product_description","stockAlert":100,"condition":1,"availability":1,"price":0,"discountType":"flat","discountprice":0,"discountVal":0,"variationManager":[{"_id":"66e444f83d2fae32350b264d","title":"Colour","type":"list","values":[{"_id":"66e444f83d2fae32350b264e","val":"Ash Pink","color":null},{"_id":"66e444f83d2fae32350b264f","val":"Ash","color":null},{"_id":"66e444f83d2fae32350b2650","val":"Black","color":null},{"_id":"66e444f83d2fae32350b2651","val":"Lavender","color":null},{"_id":"66e444f83d2fae32350b2652","val":"Misty Pink","color":null},{"_id":"66e444f83d2fae32350b2653","val":"Marron","color":null},{"_id":"66e444f83d2fae32350b2654","val":"Navy","color":null},{"_id":"66e444f83d2fae32350b2655","val":"Olive","color":null},{"_id":"66e444f83d2fae32350b2656","val":"White","color":null},{"_id":"66e444f83d2fae32350b2657","val":"White Lavender","color":null}]}],"variationMatrix":[{"visibility":true,"_id":"66e444f83d2fae32350b2658","title":"Ash Pink","sku_id":"0","image":"1.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b2659","title":"Colour","val":"Ash Pink","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b265a","title":"Ash","sku_id":"1","image":"10.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b265b","title":"Colour","val":"Ash","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b265c","title":"Black","sku_id":"2","image":"9.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b265d","title":"Colour","val":"Black","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b265e","title":"Lavender","sku_id":"3","image":"8.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b265f","title":"Colour","val":"Lavender","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b2660","title":"Misty Pink","sku_id":"4","image":"2.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b2661","title":"Colour","val":"Misty Pink","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b2662","title":"Marron","sku_id":"5","image":"7.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b2663","title":"Colour","val":"Marron","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b2664","title":"Navy","sku_id":"6","image":"6.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b2665","title":"Colour","val":"Navy","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b2666","title":"Olive","sku_id":"7","image":"5.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b2667","title":"Colour","val":"Olive","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b2668","title":"White","sku_id":"8","image":"4.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b2669","title":"Colour","val":"White","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b266a","title":"White Lavender","sku_id":"9","image":"3.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b266b","title":"Colour","val":"White Lavender","color":null}],"availability":1}],"deliveryType":"flat-rate","hotdeal":"on","latest":"off","special":"on","metaTitle":null,"metakeyWords":null,"metaDesc":null,"productid":"SKU-0027","createTime":"Fri Sep 13 2024 19:58:16 GMT+0600 (Bangladesh Standard Time)","updateTime":"Fri Sep 13 2024 19:58:16 GMT+0600 (Bangladesh Standard Time)"})' class="btn btn-success w-full submit-btn border-0" style="background-color: rgba(76, 175, 80, 1);" :disabled="$store.store.data.showMessage" > Buy Now
Call Now: +8801818-762078
Call Now: +880 1818-762078
āĻšā§‹āĻ¯āĻŧāĻžāĻŸāĻ¸āĻ…ā§āĻ¯āĻžāĻĒ āĻ…āĻ°ā§āĻĄāĻžāĻ°
āĻŽā§āĻ¯āĻžāĻ¸ā§‡āĻžā§āĻœāĻžāĻ° āĻ…āĻ°ā§āĻĄāĻžāĻ°
āĻĸāĻžāĻ•āĻž āĻ¸āĻŋāĻŸāĻŋāĻ° āĻŦāĻžāĻšāĻŋāĻ°ā§‡ āĻšāĻ˛ā§‡ ā§§ā§Ļā§Ļ āĻŸāĻžāĻ•āĻž āĻ…āĻ—ā§āĻ°āĻŋāĻŽ āĻĻāĻŋāĻ¤ā§‡ āĻšāĻŦā§‡ āĻ…ā§āĻ¯āĻžāĻĄāĻ­āĻžāĻ¨ā§āĻ¸ āĻĒā§‡āĻŽā§‡āĻ¨ā§āĻŸ āĻ āĻĄā§‡āĻ˛āĻŋāĻ­āĻžāĻ°āĻŋ āĻšāĻžāĻ°ā§āĻœ āĻĢā§āĻ°ā§€

🌙 Discover the Luxury of a Good Night’s Sleep with Our Women's Nightwear Collection ✨

Indulge in comfort and style with our premium range of women’s nightwear, crafted from soft, breathable fabrics that ensure a restful night’s sleep. Whether you prefer elegant satin, cozy cotton, or lightweight lace, our collection has something for everyone. Featuring modern designs and tailored fits, our nightwear offers the perfect blend of comfort and fashion—because feeling good while you sleep is just as important as looking good.

🌸 Why You'll Love It:

  • Ultra-soft and breathable fabrics for all-night comfort
  • Stylish designs that make you feel confident and relaxed
  • Available in various colors and sizes to suit every woman

Upgrade your sleepwear collection today and wake up refreshed! 💖


Related Products

Jewellery collection Jewellery collection

Jewellery collection

Tk 690

Stock Out
Women Tops & Skirt Women Tops & Skirt

Women Tops & Skirt

Tk 1490

Nightware Latest Nightware Latest

Nightware Latest

Tk 990

TrendiFy Nightware TrendiFy Nightware

TrendiFy Nightware

Tk 690 Tk 990

\n\n
\n
\n Watch the video\n
\n
","videoPosition":"bottom_product_description","stockAlert":100,"condition":1,"availability":1,"price":0,"discountType":"flat","discountprice":0,"discountVal":0,"variationManager":[{"_id":"66e444f83d2fae32350b264d","title":"Colour","type":"list","values":[{"_id":"66e444f83d2fae32350b264e","val":"Ash Pink","color":null},{"_id":"66e444f83d2fae32350b264f","val":"Ash","color":null},{"_id":"66e444f83d2fae32350b2650","val":"Black","color":null},{"_id":"66e444f83d2fae32350b2651","val":"Lavender","color":null},{"_id":"66e444f83d2fae32350b2652","val":"Misty Pink","color":null},{"_id":"66e444f83d2fae32350b2653","val":"Marron","color":null},{"_id":"66e444f83d2fae32350b2654","val":"Navy","color":null},{"_id":"66e444f83d2fae32350b2655","val":"Olive","color":null},{"_id":"66e444f83d2fae32350b2656","val":"White","color":null},{"_id":"66e444f83d2fae32350b2657","val":"White Lavender","color":null}]}],"variationMatrix":[{"visibility":true,"_id":"66e444f83d2fae32350b2658","title":"Ash Pink","sku_id":"0","image":"1.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b2659","title":"Colour","val":"Ash Pink","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b265a","title":"Ash","sku_id":"1","image":"10.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b265b","title":"Colour","val":"Ash","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b265c","title":"Black","sku_id":"2","image":"9.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b265d","title":"Colour","val":"Black","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b265e","title":"Lavender","sku_id":"3","image":"8.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b265f","title":"Colour","val":"Lavender","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b2660","title":"Misty Pink","sku_id":"4","image":"2.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b2661","title":"Colour","val":"Misty Pink","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b2662","title":"Marron","sku_id":"5","image":"7.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b2663","title":"Colour","val":"Marron","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b2664","title":"Navy","sku_id":"6","image":"6.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b2665","title":"Colour","val":"Navy","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b2666","title":"Olive","sku_id":"7","image":"5.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b2667","title":"Colour","val":"Olive","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b2668","title":"White","sku_id":"8","image":"4.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b2669","title":"Colour","val":"White","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b266a","title":"White Lavender","sku_id":"9","image":"3.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b266b","title":"Colour","val":"White Lavender","color":null}],"availability":1}],"deliveryType":"flat-rate","hotdeal":"on","latest":"off","special":"on","metaTitle":null,"metakeyWords":null,"metaDesc":null,"productid":"SKU-0027","createTime":"Fri Sep 13 2024 19:58:16 GMT+0600 (Bangladesh Standard Time)","updateTime":"Fri Sep 13 2024 19:58:16 GMT+0600 (Bangladesh Standard Time)"}; data && ViewContent(data) \n\n
\n
\n Watch the video\n
\n
","videoPosition":"bottom_product_description","stockAlert":100,"condition":1,"availability":1,"price":0,"discountType":"flat","discountprice":0,"discountVal":0,"variationManager":[{"_id":"66e444f83d2fae32350b264d","title":"Colour","type":"list","values":[{"_id":"66e444f83d2fae32350b264e","val":"Ash Pink","color":null},{"_id":"66e444f83d2fae32350b264f","val":"Ash","color":null},{"_id":"66e444f83d2fae32350b2650","val":"Black","color":null},{"_id":"66e444f83d2fae32350b2651","val":"Lavender","color":null},{"_id":"66e444f83d2fae32350b2652","val":"Misty Pink","color":null},{"_id":"66e444f83d2fae32350b2653","val":"Marron","color":null},{"_id":"66e444f83d2fae32350b2654","val":"Navy","color":null},{"_id":"66e444f83d2fae32350b2655","val":"Olive","color":null},{"_id":"66e444f83d2fae32350b2656","val":"White","color":null},{"_id":"66e444f83d2fae32350b2657","val":"White Lavender","color":null}]}],"variationMatrix":[{"visibility":true,"_id":"66e444f83d2fae32350b2658","title":"Ash Pink","sku_id":"0","image":"1.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b2659","title":"Colour","val":"Ash Pink","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b265a","title":"Ash","sku_id":"1","image":"10.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b265b","title":"Colour","val":"Ash","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b265c","title":"Black","sku_id":"2","image":"9.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b265d","title":"Colour","val":"Black","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b265e","title":"Lavender","sku_id":"3","image":"8.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b265f","title":"Colour","val":"Lavender","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b2660","title":"Misty Pink","sku_id":"4","image":"2.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b2661","title":"Colour","val":"Misty Pink","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b2662","title":"Marron","sku_id":"5","image":"7.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b2663","title":"Colour","val":"Marron","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b2664","title":"Navy","sku_id":"6","image":"6.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b2665","title":"Colour","val":"Navy","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b2666","title":"Olive","sku_id":"7","image":"5.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b2667","title":"Colour","val":"Olive","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b2668","title":"White","sku_id":"8","image":"4.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b2669","title":"Colour","val":"White","color":null}],"availability":1},{"visibility":true,"_id":"66e444f83d2fae32350b266a","title":"White Lavender","sku_id":"9","image":"3.webp","price":490,"discountprice":490,"discountType":"flat","discountVal":0,"stock":0,"weightType":"gm","weightVal":100,"variationObj":[{"_id":"66e444f83d2fae32350b266b","title":"Colour","val":"White Lavender","color":null}],"availability":1}],"deliveryType":"flat-rate","hotdeal":"on","latest":"off","special":"on","metaTitle":null,"metakeyWords":null,"metaDesc":null,"productid":"SKU-0027","createTime":"Fri Sep 13 2024 19:58:16 GMT+0600 (Bangladesh Standard Time)","updateTime":"Fri Sep 13 2024 19:58:16 GMT+0600 (Bangladesh Standard Time)"}, variations: {}, variationArr: [], isEmptyKeys: true, title: '', selectedVariation: {}, variationImage: '', sku_id: '', isLoading: false, discountTag: '', discountVal: 0, discountType: '', regularPrice: null, inStock: false, price: '', qty: 1, variationProductStock: '', selectedVariationMatrixId: '', total: 0, isSelected: true, maxQty: false, divElement: null, // Store references to div elements by their ID }, /* set the initial values */ async init() { this.initVariationKeys(); this.priceCalculation(); // Initial price calculation }, // Check stock availability for non-variation products async checkStockAvailability() { await fetch(`https://bossbazaar.com/api/inventory/has-stock/${this.data.product.slug}?qty=${this.data.qty + 1}`, { method: 'GET', headers: { 'Content-Type': 'application/json', 'Cache-Control': 'no-cache' } }).then((res) => res.json()) .then((res) => { this.data.inStock = res; }); }, /* Total calculation with increament of the product quantity */ totalCalcuation() { const data = this.data; data.total = data.price * data.qty; }, /* Calculation the exact price of the product */ priceCalculation(title = "") { const data = this.data; /* Check hasVariation */ if (title) { data.price = data.selectedVariation.discountprice; data.discountType = data.selectedVariation.discountType == 'flat' ? 'Tk ' : '% '; data.discountVal = data.selectedVariation.discountVal; data.regularPrice = data.selectedVariation.discountVal > 0 ? data.selectedVariation.price : null; data.discountTag = data.selectedVariation.discountVal ? data.selectedVariation.discountVal + '' + data.discountType + 'off' : ''; } else { let lowestPriceHasDiscount = Infinity; let lowestPrice = 0; let lowestDiscountValue = 0; let discountType = "" if (data.product?.hasVariations) { data.product?.variationMatrix.forEach(variation => { if (variation.visibility) { let discountPrice; if (variation.discountVal > 0) { discountPrice = variation.discountprice; if (discountPrice < lowestPriceHasDiscount) { lowestPriceHasDiscount = discountPrice; lowestPrice = variation.price; lowestDiscountValue = variation.discountVal; discountType = variation.discountType; } } else { if (variation.price < lowestPriceHasDiscount) { lowestPriceHasDiscount = variation.price; lowestPrice = variation.price; } } } }); data.price = lowestPriceHasDiscount; data.discountType = discountType == 'flat' ? 'Tk ' : '% '; data.discountVal = lowestDiscountValue; data.regularPrice = data.discountVal > 0 ? lowestPrice : null; data.discountTag = data.discountVal && data.discountVal > 0 ? data.discountVal + '' + data.discountType + 'off' : ""; } else { data.price = data.product.discountprice; data.discountType = data.product.discountType == 'flat' ? 'Tk ' : '% '; data.discountVal = data.product.discountVal; data.regularPrice = data.product.discountVal ? data.product.price : null; data.discountTag = data.product.discountVal ? data.product.discountVal + '' + data.discountType + 'off' : ""; } } }, /* Variation Seletion */ initVariationKeys() { this.data.product.variationManager.forEach((item) => { this.data.variations[item.title] = ""; }); if (!this.data.product.hasVariation) { this.checkStockAvailability(); } }, async handleVariationSelection(variationValue, variationTitle, i) { this.updateVariation(variationValue, variationTitle); if (!this.data.isEmptyKeys) { await this.processSelectedVariation(variationValue, i); } }, updateVariation(variationValue, variationTitle) { this.data.variations[variationTitle] = variationValue; this.data.isEmptyKeys = Object.values(this.data.variations).some(val => val === ''); this.data.maxQty = false; }, // Process selected variation and check visibility async processSelectedVariation(variationValue, i) { this.data.title = Object.values(this.data.variations).join(' | '); let variation = this.data.product.variationMatrix.find(variationObj => variationObj?.title === this.data.title); // Reset the previous disabled label if exists if (this.data.previousDisableLabel) { this.data.previousDisableLabel.style.pointerEvents = ''; this.data.previousDisableLabel.style.opacity = ''; this.data.previousDisableLabel.classList.remove('text-muted', 'cursor-not-allowed'); } // Handle invisible variation if (!variation?.visibility) { const labelElement = document.querySelector(`.product-varations-checkbox[data-index="${i}"] label[for="${variationValue}"]`); this.data.disableLabel = labelElement; if (labelElement) { labelElement.style.pointerEvents = 'none'; labelElement.style.opacity = '0.3'; labelElement.classList.add('text-muted', 'cursor-not-allowed'); this.data.previousDisableLabel = labelElement; } // Store the div reference const divId = `${i}${variationValue}`; const divElement = document.getElementById(divId); this.data.divElement = divElement; if (divElement) { divElement.style.display = 'block'; } this.data.showMessage = true; // Trigger x-show /* if(variation?.stock < 1) this.data.inStock = false; */ return; } this.data.inStock = true; // Hide previous message divs /* this.data.divElement.style.display = 'none' */ /* // Hide all variation disable icons once a valid variation is selected const disableIcons = document.getElementsByClassName("variation_disable_icon"); for (let icon of disableIcons) { icon.style.display = 'none'; } */ this.data.showMessage = false; // Hide message div this.data.selectedVariation = variation; console.log("From Show Data:",variation); this.data.variationImage = variation.image; this.data.sku_id = variation.sku_id; this.data.selectedVariationMatrixId = variation._id; this.data.isLoading = true; await this.checkStock(1); // Check stock for the selected variation this.priceCalculation(this.data.title); this.totalCalcuation(); this.data.isLoading = false; }, // Function to check stock async checkStock(qty) { await fetch(`https://bossbazaar.com/api/inventory/has-stock/${this.data.product.slug}?qty=${qty}&sku_id=${this.data.sku_id}`, { method: 'GET', headers: { 'Content-Type': 'application/json' } }) .then((res) => { if (!res.ok) throw new Error('Response was not ok'); return res.json(); }) .then((data) => { this.data.inStock = data; this.data.variationProductStock = this.data.selectedVariation.stock; }) .catch((error) => { console.error('Error:', error); Swal.fire({ icon: 'error', title: 'Stock Check Failed', text: 'There was an error checking the stock. Please try again later.', confirmButtonText: 'OK', }); }); }, /* Increamenting and decreamenting the quantity */ async handleQty(actionType) { const data = this.data; if (actionType == "increament") { /* Check if TrackInventory is enabled */ if (data.product.isTrackingInventory) { let url = data.product.hasVariations ? `https://bossbazaar.com/api/inventory/has-stock/${data.product.slug}?type=increment&qty=${data.qty + 1}&sku_id=${data.sku_id}` : `https://bossbazaar.com/api/inventory/has-stock/${data.product.slug}?qty=${data.qty + 1}`; /* Check the stock from the server */ await fetch(url, { method: 'GET', headers: { 'Content-Type': 'application/json' } }).then((res) => { if (!res.ok) { throw new Error('Response was not ok'); } return res.json() }).then((res) => { if (res) { data.qty++; /* Total calculation */ this.totalCalcuation() } else { this.data.maxQty = true return; } }) } else { /* if trackInventory is disabled */ data.qty++; /* Total calculation */ this.totalCalcuation() } } else { /* decreament */ if (data.qty == 1) { return; } else { data.qty--; this.data.maxQty = false /* Total calculation */ this.totalCalcuation() } } }, /* Create the form to send data to the server */ createObjectForRequest() { const data = this.data; const formData = new FormData(); const variation = data.product.variationMatrix.find(title => { if (title == data.title) { return title; } }) formData.append('slug', data.product.slug); /* formData.append('variation', JSON.stringify(variation)); */ formData.append('selectedVariationMatrixId', data.selectedVariationMatrixId); formData.append('title', data.title); formData.append('variationImage', data.variationImage); formData.append('sku_id', data.sku_id); formData.append('qty', data.qty); formData.append('discountType', data.discountType); formData.append('discountVal', data.discountVal); formData.append('price', data.price); formData.append('isTrackingInventory', data.isTrackingInventory); formData.append('availability', data.availability); formData.append('hasVariations', data.hasVariations); return formData }, /* Add to cart */ async handleAddToCart() { /* change the url to '/cart/add/women-sleepware-(trendify)' */ const reqBody = this.createObjectForRequest(); if (this.data.product.hasVariations && Object.keys(this.data.selectedVariation).length === 0) { this.data.isSelected = false } else { await fetch(`https://bossbazaar.com/cart/add/women-sleepware-(trendify)`, { method: 'POST', body: reqBody, }).then(res => { if (res.status == 200) { window.location = `https://bossbazaar.com/products/women-sleepware-(trendify)`; } return res.json }).then(response => {}).catch() .finally(() => { if (data) { AddToCart({ ...data, ...this.data.variations, sku_id: this.data.sku_id }); } }) } }, /* Order now */ async handleOrderNow() { if (this.data.product.hasVariations && Object.keys(this.data.selectedVariation).length === 0) { this.data.isSelected = false } else { const url = '' ? `https://bossbazaar.com/cart/ordernow/women-sleepware-(trendify)` : `https://bossbazaar.com/cart/add/women-sleepware-(trendify)` /* change the url to '/cart/add/women-sleepware-(trendify)' */ await fetch(url, { method: 'POST', body: this.createObjectForRequest(), }).then(res => { if (res.status == 200) { window.location = `https://bossbazaar.com/checkout`; } return res.json }).then(response => {}).catch() .finally(() => { if (data) { AddToCart({ ...data, ...this.data.variations, sku_id: this.data.sku_id }); } }) } } }) }) // setup Ip addresses function getAdressByIP(ipOrHost) { fetch(`http://ip-api.com/json/${ipOrHost}`, { method: "GET", // headers: new Headers({ // "keycdn-tools": "https?://.*", // "Content-Type": "application/json", // "User-Agent": "keycdn-tools:https://*", // }), }) .then((res) => res.json()) .then((result) => { localStorage.setItem( "address", JSON.stringify({ country: result.countryCode.toLowerCase(), state: result.regionName, city: result.city, postal_code: result.zip, }) ); }) .catch((error) => { fetch(`http://www.geoplugin.net/json.gp?ip=${ipOrHost}`) .then((res) => res.json()) .then((result) => { localStorage.setItem( "address", JSON.stringify({ country: result.geoplugin_countryCode.toLowerCase(), state: result.geoplugin_region, city: result.geoplugin_city, postal_code: result.geoplugin_areaCode, }) ); }) .catch((error) => { localStorage.setItem( "address", JSON.stringify({ country: "bd", state: "", city: "", postal_code: "", }) ); }); }); } if (!localStorage.getItem('ip') || localStorage.getItem('ip') == 'undefined') { fetch('https://api.ipify.org/?format=json') .then(res => res.json()) .then(result => { localStorage.setItem('ip', result.ip); getAdressByIP(result.ip) }) .catch(err => { // try another api }) }