Skip to content
Ashutosh Sharma
Dec 11, 2024 /
5 Min Read best Best Vitamins and Supplements for Women's Health
Women’s health can be truly complex, with unique nutritional needs that shift with each stage of life. Women need certain vitamins and minerals from adolescence through childbearing years and beyond to support hormonal health, immune function, bone strength, and more. A balanced diet plays a key role in feeding your body these needs, yet even the healthiest of diets may fall short due to lifestyle, stress, environmental stress, or even medical conditions.
For many, adding vitamins and supplements can strongly bridge nutritional gaps, promoting overall well-being. A healthy lifestyle starts with a balanced meal and adequate intake of essential nutrients. Vitamins, Minerals, and Supplements help maintain optimal health, significantly in areas where diet alone may not be enough.
Key nutrients such as Vitamin D, Vitamin B, Omega-3 fatty acids , and Iron play a key role in maintaining women’s health, and deficiencies may lead to various issues, from fatigue and mood swings to lower bone density and ill immune function.
Significance of Vitamins & Supplements for Women’s Health
Every woman has unique nutritional requirements, and these may evolve over time. Nowadays, it is not easy to consume a perfectly balanced diet that fulfills all of these needs regularly. Additionally, stress, hormonal shifts, aging, and lifestyle choices may increase the needs of their body, making supplements a wise choice.
Nutritional Requirements at Different Life Stages
Adolescence and Young Adulthood : During these formative years, the body requires vitamins and minerals to support growth, cognitive development, and hormonal balance.
Childbearing Years : Reproductive health demands nutrients such as folate, iron, and calcium, especially for women considering pregnancy.
Menopause : During menopause, nutrient demands change as the body transitions; bone health, cardiovascular health, and hormone balance become key focus areas.
Aging : Bone density, cognitive function, immune support, and cardiovascular health require increased support as women age, particularly with nutrients like vitamin D, calcium, and omega-3 fatty acids.
While individual dietary needs may vary, vitamins and supplements offer a tailored way to address these requirements. Orthomol provides a range of scientifically-backed supplements that are specifically formulated to support women’s health.
Vitamins and Supplements that Orthomol offers to support women’s health
Orthomol Vital F : Your Daily Vitality & Stress Management
Orthomol Vital F is specially formulated to support women’s health with a blend of essential nutrients that help boost energy levels, immune function, and stress management. This supplement is significantly beneficial for women dealing with daily stress, a common aspect that exhausts key vitamins and minerals from the body.
Key Ingredients : Magnesium, vitamin B, zinc, and antioxidants
Benefits : The B-complex vitamins are known for supporting energy production, improving brand function, and helping with stress management.
Ideal for : This supplement is ideal for women experiencing fatigue, and stress, or those looking for an overall vitality boost.
This product not only helps with physical health but also aids mental well-being, which is equally essential.
Orthomol beauty is essentially created to improve beauty from within. Skin, hair, and nail health often reflect your underlying nutrient levels, and Orthomol Beauty offers targeted nutrients to boost a youthful appearance while supporting tissue health.
Key Ingredient s: Collagen, hyaluronic acid, biotin, and antioxidants like vitamins C and E.
Benefits : Collagen and hyaluronic acid work synergistically to improve skin elasticity and hydration, supporting a healthy, radiant complexion. Biotin strengthens hair and nails, while antioxidants protect cells from free radical damage, which contributes to visible aging.
Ideal for : Women interested in improving skin elasticity, hydration, and appearance, as well as those experiencing issues with brittle hair and nails.
This supplement offers a powerful blend of nutrients to promote beauty from within, ideal for women looking to support their skin, hair, and nail health naturally.
Orthomol Natal : Prenatal & Postnatal Health
During breastfeeding and pregnancy, a woman’s nutritional needs are amplified. Orthomol Natal Section is specifically designed to support women’s health before, during, and after pregnancy, giving the body essential nutrients that are important for both baby and mother.
Key Ingredients : Folic acid, DHA, iron, and iodine.
Benefits : Folic acid is vital for fetal brain and spine development, while DHA (an omega-3 fatty acid ) supports cognitive and visual development. Iron aids in preventing anemia, a common issue in pregnancy, and iodine is crucial for the baby’s brain and thyroid development.
Ideal for : Women who are pregnant, planning to conceive, or currently breastfeeding.
Orthomol Natal helps ensure both mother and baby receive the necessary nutrients for healthy development, offering peace of mind during this important life stage.
Orthomol Osteo— Bone Health & Mobility Support
Bone density is an essential health concern for women, significantly as they age and reach menopause. With Orthomol Osteo, women can support their bone health and lower the risk of osteoporosis, a condition characterized by brittle and weak bones.
Key Ingredients : calcium, vitamin D, magnesium, and vitamin K.
Benefits : Calcium and vitamin D work together to strengthen bones, while magnesium aids calcium absorption and promotes muscle relaxation. Vitamin K plays a role in bone metabolism and helps to support bone density.
Ideal for : women at risk of osteoporosis or those in menopause looking to maintain bone strength.
This supplement is ideal for women focused on preserving bone health, supporting joint mobility, and reducing the risk of fractures.
Orthomol Immune System Support
Maintaining a strong immune system is essential for overall health, and Orthomol Immun is formulated to boost immunity, making it easier to fight off infections and maintain energy levels.
Key Ingredients : Vitamin C, zinc, selenium, and vitamin D.
Benefits : Vitamin C and zinc are essential for immune function, while selenium protects cells from oxidative stress and supports thyroid health. Vitamin D, a crucial vitamin for immune response, helps the body defend itself against pathogens.
Ideal for women of all ages who want to boost their immune systems and prevent frequent colds or infections.
Orthomol Immun is a convenient way to support immune health, providing the body with the necessary nutrients to defend against environmental stressors and illnesses.
Significance of Consistency and Quality in Supplements
Since not all supplements and vitamins are formulated equally, choosing quality, scientifically created supplements that offer consistent and reliable results is important. Orthomol’s commitment to quality ensures that each item is backed by scientific research and manufactured to the highest standards. By choosing our supplements, women can feel confident that they are buying a product that is effective and carefully created to support their unique health needs.
What Now?
For women, vitamins and supplements are an effective way to fill nutritional gaps and support health across every life stage. Whether you’re focused on enhancing energy levels, maintaining strong bones, boosting immune health, or improving skin and hair, Orthomol offers a range of targeted products to meet these needs.
Incorporating these essential supplements into a balanced lifestyle can help women achieve greater vitality, resilience, and well-being. A strong foundation of health starts with understanding what your body needs and making proactive choices to support it. With Orthomol, women can embrace a balanced, healthier lifestyle equipped with the nutrients they need to thrive.
Whether you’re just starting your wellness journey or seeking additional support for specific health goals, Orthomol’s tailored supplements can empower you to take charge of your health, one nutrient at a time.
document.addEventListener('DOMContentLoaded', () => {
const bundleSettings = {"id":2081,"shop":"4266b7-f7.myshopify.com","showOnProductPage":null,"selector":null,"placement":null,"customCss":"/* ================================\n ORTHOMOL BUNDLE PAGE — CUSTOM CSS\n ================================ */\n\n/* ---------- 0) Brand Tokens ---------- */\n:root {\n --om-blue: #0D3373;\n --om-green: #B9C300;\n --om-teal: #339999;\n --om-text: #1C1C1C;\n --om-muted: #6B7280;\n --om-border: #E6E8EC;\n --om-bg: #FFFFFF;\n --om-bg-soft: #F7F8FA;\n --om-shadow: 0 8px 24px rgba(13, 51, 115, 0.10);\n --radius-lg: 16px;\n --radius-xl: 20px;\n --gap: 16px;\n}\n\n/* Respect reduced motion */\n@media (prefers-reduced-motion: reduce) {\n * { animation: none !important; transition: none !important; }\n}\n\n/* ---------- 1) Page Layout & Headings ---------- */\n.bundle-page,\n.shopify-section.bundle,\n.section--bundle {\n background: var(--om-bg);\n color: var(--om-text);\n}\n\n.bundle-hero,\n.bundle-header {\n padding: 32px 0 16px;\n text-align: center;\n}\n\n.bundle-hero h1,\n.bundle-header h1 {\n font-size: clamp(24px, 3vw, 36px);\n line-height: 1.15;\n letter-spacing: -0.01em;\n color: var(--om-blue);\n margin: 0 0 8px;\n}\n\n.bundle-hero p,\n.bundle-subtitle {\n color: var(--om-muted);\n font-size: clamp(14px, 1.6vw, 16px);\n max-width: 760px;\n margin: 0 auto;\n}\n\n/* ---------- 2) Announcement / Offer Bar ---------- */\n.offer-bar,\n.announcement-bar--bundle {\n background: var(--om-blue);\n color: #fff;\n padding: 10px 14px;\n text-align: center;\n font-weight: 500;\n letter-spacing: 0.2px;\n}\n\n.offer-bar b { color: var(--om-green); }\n\n/* ---------- 3) Bundle Grid & Cards ---------- */\n.bundle-grid,\n.collection.grid--bundle,\n.products--bundle {\n display: grid;\n grid-template-columns: repeat(12, 1fr);\n gap: var(--gap);\n}\n\n@media (max-width: 980px) {\n .bundle-grid,\n .collection.grid--bundle,\n .products--bundle {\n grid-template-columns: repeat(6, 1fr);\n }\n}\n@media (max-width: 640px) {\n .bundle-grid,\n .collection.grid--bundle,\n .products--bundle {\n grid-template-columns: repeat(2, 1fr);\n }\n}\n\n.bundle-card,\n.product-card--bundle,\n.card--product {\n grid-column: span 3;\n background: var(--om-bg);\n border: 1px solid var(--om-border);\n border-radius: var(--radius-lg);\n box-shadow: var(--om-shadow);\n overflow: hidden;\n display: flex;\n flex-direction: column;\n transition: transform .18s ease, box-shadow .18s ease;\n}\n\n.bundle-card:hover {\n transform: translateY(-2px);\n box-shadow: 0 12px 28px rgba(13,51,115,.14);\n}\n\n.bundle-card__image img {\n width: 100%;\n height: auto;\n display: block;\n background: var(--om-bg-soft);\n}\n\n.bundle-card__body {\n padding: 14px 14px 12px;\n}\n\n.bundle-card__title {\n font-size: 16px;\n font-weight: 600;\n color: var(--om-text);\n margin: 0 0 6px;\n}\n\n.bundle-card__meta {\n display: flex;\n align-items: center;\n gap: 8px;\n color: var(--om-muted);\n font-size: 13px;\n}\n\n/* ---------- 4) Badges (Free Gift / One-Time Purchase) ---------- */\n.badge,\n.product-tag,\n.pill {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 6px 10px;\n border-radius: 999px;\n font-size: 12px;\n font-weight: 600;\n letter-spacing: .2px;\n border: 1px solid var(--om-border);\n background: var(--om-bg-soft);\n color: var(--om-blue);\n}\n\n.badge--free {\n background: rgba(185,195,0,0.12);\n color: var(--om-green);\n border-color: rgba(185,195,0,0.45);\n}\n\n.badge--one-time {\n background: rgba(51,153,153,0.10);\n color: var(--om-teal);\n border-color: rgba(51,153,153,0.40);\n}\n\n/* Example usage:\n Free 7-Day Liquid Vial \n One-Time Purchase \n*/\n\n/* ---------- 5) Price Row & Savings ---------- */\n.price-row {\n display: flex; align-items: baseline; gap: 8px; margin: 6px 0 10px;\n}\n.price-row .price--compare { color: var(--om-muted); text-decoration: line-through; }\n.price-row .price--current { color: var(--om-blue); font-weight: 700; }\n\n/* ---------- 6) CTA Buttons ---------- */\n.btn,\n.button,\n.shopify-payment-button__button {\n appearance: none;\n border: 0;\n border-radius: var(--radius-lg);\n padding: 12px 16px;\n font-weight: 600;\n font-size: 14px;\n cursor: pointer;\n transition: filter .18s ease, transform .12s ease;\n box-shadow: var(--om-shadow);\n background: var(--om-blue);\n color: #fff;\n}\n\n.btn:hover { filter: brightness(1.03); }\n.btn:active { transform: translateY(1px); }\n\n.btn--ghost {\n background: #fff; color: var(--om-blue);\n border: 1px solid var(--om-border);\n box-shadow: none;\n}\n\n.btn--success { background: var(--om-green); color: #0b0b0b; }\n.btn--teal { background: var(--om-teal); }\n\n/* \"Add bundle\" emphasis */\n.btn--add-bundle {\n width: 100%;\n margin-top: 8px;\n}\n\n/* ---------- 7) Sticky Add-to-Cart Bar ---------- */\n.sticky-bar--bundle {\n position: sticky; bottom: 0; left: 0; right: 0;\n background: rgba(255,255,255,0.96);\n backdrop-filter: saturate(150%) blur(6px);\n border-top: 1px solid var(--om-border);\n padding: 12px 16px;\n display: flex; gap: 12px; align-items: center; justify-content: space-between;\n z-index: 45;\n}\n.sticky-bar--bundle .summary {\n display: flex; gap: 12px; align-items: center; color: var(--om-text);\n}\n.sticky-bar--bundle .summary b { color: var(--om-blue); }\n\n/* ---------- 8) Free Gift Panel (auto-add message) ---------- */\n.free-gift-banner {\n display: flex; align-items: center; gap: 10px;\n background: linear-gradient(90deg, rgba(185,195,0,0.18), rgba(255,255,255,0));\n border: 1px dashed rgba(185,195,0,0.6);\n color: var(--om-text);\n padding: 10px 12px;\n border-radius: var(--radius-lg);\n margin: 10px 0 14px;\n}\n.free-gift-banner .icon { width: 18px; height: 18px; background: var(--om-green); border-radius: 4px; }\n\n/* ---------- 9) Quiz / Helper Floating Action ---------- */\n.helper-fab {\n position: fixed; right: 18px; bottom: 18px;\n background: var(--om-blue);\n color: #fff;\n border-radius: 999px;\n padding: 12px 16px;\n font-weight: 600;\n box-shadow: 0 12px 28px rgba(13,51,115,.28);\n z-index: 70;\n}\n.helper-fab:hover { filter: brightness(1.05); }\n\n/* ---------- 10) Info Blocks, Accordions ---------- */\n.info-block,\n.accordion--bundle {\n background: var(--om-bg-soft);\n border: 1px solid var(--om-border);\n border-radius: var(--radius-lg);\n padding: 14px;\n}\n\n.accordion--bundle summary {\n cursor: pointer;\n font-weight: 600;\n color: var(--om-blue);\n}\n\n.accordion--bundle p { color: var(--om-muted); }\n\n/* ---------- 11) Countdown / Urgency (if used) ---------- */\n.countdown--bundle {\n display: inline-flex; gap: 10px; align-items: center;\n background: var(--om-bg-soft);\n border: 1px solid var(--om-border);\n border-radius: 999px;\n padding: 8px 12px;\n font-weight: 600;\n color: var(--om-blue);\n}\n\n/* ---------- 12) Toast / Unlock Message ---------- */\n.toast--unlock {\n position: fixed; left: 50%; transform: translateX(-50%);\n bottom: 24px; max-width: 640px; width: calc(100% - 32px);\n background: #fff;\n border: 1px solid var(--om-border);\n border-radius: var(--radius-xl);\n box-shadow: 0 18px 40px rgba(13,51,115,.18);\n padding: 14px 16px;\n display: flex; align-items: center; gap: 12px;\n z-index: 90;\n}\n.toast--unlock .title { font-weight: 700; color: var(--om-blue); }\n.toast--unlock .desc { color: var(--om-muted); }\n\n/* ---------- 13) Forms (one-time purchase radio) ---------- */\n.purchase-options {\n display: grid; gap: 10px; margin: 12px 0;\n}\n.purchase-option {\n display: flex; align-items: center; gap: 10px;\n border: 1px solid var(--om-border);\n border-radius: var(--radius-lg);\n padding: 10px 12px;\n background: #fff;\n cursor: pointer;\n}\n.purchase-option input[type=\"radio\"] { accent-color: var(--om-blue); }\n.purchase-option--onetime { border-color: rgba(51,153,153,.5); background: rgba(51,153,153,.06); }\n.purchase-option--subscribe { border-color: rgba(13,51,115,.35); }\n\n/* ---------- 14) Accessibility: Focus Rings ---------- */\na:focus-visible, button:focus-visible, .btn:focus-visible, .helper-fab:focus-visible {\n outline: 2px solid var(--om-teal);\n outline-offset: 3px;\n border-radius: 10px;\n}\n\n/* ---------- 15) Small Utilities ---------- */\n.mt-0 { margin-top: 0 !important; }\n.mt-8 { margin-top: 8px !important; }\n.mt-16 { margin-top: 16px !important; }\n.centered { text-align: center !important; }\n.hidden-mobile { display: block; }\n@media (max-width:640px){ .hidden-mobile { display: none !important; } }\n","customizeBundleOptionType":"RADIO","buyButtonSelector":null,"labels":"{\"productDiscountCombinedWithOrderDiscount\":true,\"bundleListViewDetailsButtonLabel\":\"View Details\",\"topBarFixedDiscountTitlePostfix\":\"{{currency}}{{discount}} off on shipping\",\"requiredLoginValidationLabel\":\"Please log in to purchase this bundle!\",\"volumeDiscountTypeLabel\":\"Volume Discount\",\"loginAlertLinkLabel\":\"Click here to login\",\"includedSubscriptionPlans\":\"\",\"breadCrumbProductsLabel\":\"Choose Products\",\"enableClassicBundleRecreation\":true,\"emptyProductImage\":\"https://cdn.shopify.com/s/files/1/0661/9224/4900/files/EmptyImage.jpg?v=1718447038\",\"enableAnnouncementBarAutoRotate\":true,\"reviewOrderInfoLabel\":\"\",\"productDiscountCombinedWithProductDiscount\":true,\"bundleMaximumQuantityLabel\":\"Add maximum up to {{maximum_quantity}} product\",\"volumeDiscountAppliesOnOneTimePurchase\":true,\"productAddToBundleLabel\":\"Add\",\"breadCrumbReviewBundleLabel\":\"Review Bundle\",\"enableScrollingToBundleSection\":false,\"orderNoteLabel\":\"Order Note\",\"showProductPerPage\":50,\"dynamicBundleDiscountCombinedWithShippingDiscount\":true,\"hidePurchaseOptionSelectLabel\":false,\"showPriceAsDecimals\":false,\"fixedDiscountText\":\"Enjoy a fixed discount of {{currency}}{{discount_value}} on your purchase!\",\"sectionTotalLabel\":\"Section Total\",\"fieldDisabledBackgroundColor\":\"#ffffff\",\"bundleTotalLabel\":\"Total\",\"disableRefreshSellingPlan\":false,\"checkInventoryQuantity\":false,\"showSubscriptionPlanDescription\":false,\"disableProductDescription\":false,\"fixedPricingBundleTypeLabel\":\"Fixed Pricing Bundle\",\"subscriptionAvailableLabel\":\"Subscription Available\",\"excludeSubscriptionPlans\":\"\",\"readLessText\":\"Read Less\",\"buyXGetYDiscountAppliesOnSubscription\":true,\"shippingDiscountLabel\":\"{{discount}}{{discount_type}} Shipping Discount\",\"selectedGiftProductProgressLabelText\":\"{{selected_product_quantity}} gift products added, The required quantity is {{required_product_quantity}}\",\"disableFitImage\":false,\"secondaryTextColor\":\"#b9c300\",\"bundleProductsQuantityLabel\":\"{{quantity}}x quantity\",\"buyXGetYDiscountCombinedWithProductDiscount\":true,\"tieredDiscountLabel\":\"{{discount_amount}}{{discount_type}} Discount\",\"buyXGetYQuantityValidationLabel\":\"Add {{product_quantity}} quantities of the gift product (Get Y)\",\"primaryTextColor\":\"#000000\",\"modalOpenOnAddToCart\":true,\"notApplicableForSubscribeAndSaveNotificationTitle\":\"Not applicable for subscribe & save\",\"customSignInLink\":\"\",\"productDiscountAppliesOnOneTimePurchase\":true,\"topBarDiscountUnlockTitlePrefix\":\"You've unlocked \",\"loginAlertTextLabel\":\"You need to login to purchase this bundle.\",\"buyXGetYChooseProductLabel\":\"Choose Product\",\"chooseAPlanLabel\":\"Choose Plan\",\"singleParentProductDirectRedirectToChildProducts\":true,\"buyXGetYFixedDiscountText\":\"Enjoy a fixed discount of {{discount_value}} {{currency}}\",\"primaryColor\":\"#0d3373\",\"buyXGetYGiftProductPriceVisibilityType\":\"UNIT_PRICE\",\"shippingDiscountRecurringCycleLimit\":0,\"volumeDiscountVariantSelectLabel\":\"Denominations\",\"chooseSourceProductValidationLabel\":\"Please choose source product!\",\"shippingDiscountAppliesOnSubscription\":true,\"volumeDiscountSpentAmountRewardsLabel\":\"Spend {{currency}}{{spent_amount}} and get {{discount}}{{discount_type}} discount!\",\"hideBundleToastNotification\":false,\"classicBundleTypeLabel\":\"Classic Bundle\",\"volumeDiscountRecurringCycleLimit\":0,\"bundleListDescription\":\"Explore our Bundles and Discounted Pricing and enjoy exclusive discounts when you buy products together\",\"getYNoProductSelectedLabel\":\"No gift product selected (Get Y)\",\"hideVariantSelectLabel\":false,\"availableOnlySubscriptionLabel\":\"Available Only On Subscription\",\"enableParentProductDetailButton\":false,\"bundleListTitle\":\"List of Bundles and Discounted Pricing\",\"chooseAssociatedProductsValidationLabel\":\"Please choose associated products!\",\"selectedSourceProductLabel\":\"Selected\",\"enableBuyXGetYWidgetMergeAsOptions\":false,\"volumeDiscountNextApplicableSpentAmountRewardsLabel\":\"Spend {{spent_amount}}{{currency}} get {{discount}}{{discount_type}}\",\"sectionNoProductSelectedValidationLabel\":\"No product selected for: {{section_name}}!\",\"bundlePageBackgroundColor\":\"#FAFAF9\",\"buyXQuantityValidationLabel\":\"Add {{product_quantity}} quantities of the product (Bux X)\",\"sectionMaximumQuantityValidationLabel\":\"Maximum quantity not selected for: {{section_name}}!\",\"volumeAmountDiscountSaveRewardsLabel\":\"Save {{currency}}{{discount}}!\",\"sectionLabel\":\"Section\",\"disabledTextColor\":\"#6B7280\",\"primaryHoverColor\":\"#0d3373\",\"shippingDiscountCombinedWithOrderDiscount\":true,\"defaultDiscountBarMessage\":\"Welcome to our store\",\"buyXGetYDiscountCombinedWithOrderDiscount\":true,\"bundleSubtotalLabel\":\"Subtotal\",\"reviewOrderDescription\":\"Check your items and select your required frequency plan\",\"dynamicBundleDiscountCombinedWithOrderDiscount\":true,\"volumeDiscountSaveRewardsLabel\":\"Save {{discount}}{{discount_type}}!\",\"addingProductsToBundle\":\"Adding products to bundle\",\"buyXGetYMergedWidgetTitle\":\"Select Buy X Get Y Discount\",\"bundleModalHeaderLabel\":\"Your Bundle({{total_quantity}})\",\"productAddedToBundleNotificationDescription\":\"{{product_title}} added to bundle.\",\"dynamicBundleDiscountAppliesOnSubscription\":true,\"productDiscountTypeLabel\":\"Product Discount\",\"bundleTopHtml\":\"\",\"proceedToCheckoutButtonText\":\"\",\"showDraftProduct\":false,\"switchSubscriptionLabel\":\"Subscribe & Save\",\"percentDiscountText\":\"Get {{discount_value}}% off on your purchase!\",\"discountUsageLimitExceedLabel\":\"You have exceeded the bundle usage limit\",\"reviewOrderLabel\":\"Review Bundle\",\"chooseSectionProductsLabel\":\"Choose Section Products\",\"primaryDisabledColor\":\"#333333\",\"bundleMinimumOrderAmountLabel\":\"Add minimum {{minimum_amount}} order amount\",\"dynamicBundleDiscountRecurringCycleLimit\":0,\"breadCrumbSelectSectionLabel\":\"Select Section\",\"loadMoreButtonLabel\":\"Load More\",\"bundleQuantityRewardsLabel\":\"Add {{quantity}} item, get {{discount}}{{discount_type}} discount\",\"shippingDiscountCombinedWithProductDiscount\":true,\"sellingPlanNameSortOrder\":\"ASC\",\"switchOnTimeLabel\":\"One Time\",\"volumeDiscountCombinedWithProductDiscount\":true,\"chooseProductsText\":\"Products\",\"productDetailsViewType\":\"SHOW_PRODUCT_POPUP\",\"enableManualBundleBlockIntegration\":false,\"volumeDiscountNextApplicableQuantityRewardsLabel\":\"Buy {{quantity}} get {{discount}}{{discount_type}}\",\"bundleCheckoutLabel\":\"Checkout\",\"productDiscountCombinedWithShippingDiscount\":true,\"skipSelectSectionPage\":false,\"productCardBackgroundColor\":\"#ffffff\",\"buyXGetYFreeLabel\":\"Free\",\"buttonBackgroundColor\":\"#0d3373\",\"dockbarHeadingLabel\":\"Bundle\",\"discountMessageInterval\":3000,\"sectionedBundleTypeLabel\":\"Sectioned Bundle\",\"buyXGetYAddToCartLabel\":\"Add to cart\",\"buyXGetYDiscountCombinedWithShippingDiscount\":true,\"dynamicBundleDiscountCodeText\":\"BUNDLE_DISCOUNT_{{bundle_id}}\",\"productDiscountAppliesOnSubscription\":true,\"selectedProgressLabelText\":\"{{total_bundle_items}} item added with a minimum quantity of {{minimum_quantity}}\",\"requiredBundleProductLabel\":\"Your bundle needs {{min_product_count}} more item(s).\",\"sellingPlanSelectionDropDownLabel\":\"Purchase Options\",\"buyXGetYPercentDiscountText\":\"Enjoy a percentage discount of {{discount_value}}%\",\"dockbarDescriptionLabel\":\"You're getting the most rewards!\",\"productDiscountRecurringCycleLimit\":0,\"preventClickableProductsOnCart\":false,\"enableProductDetailButton\":false,\"discountTargetType\":\"VARIANT\",\"buyXGetYDiscountTypeLabel\":\"Buy X Get Y Discount\",\"customOfferLink\":\"collections/all\",\"noItemsInBundle\":\"No items added to the bundle\",\"topBarPercentDiscountTitlePostfix\":\"{{discount}}% off on shipping\",\"variantSelectionDropDownLabel\":\"Variants\",\"chooseSectionLabel\":\"Choose Section\",\"dynamicPricingBundleTypeLabel\":\"Dynamic Pricing Bundle\",\"breadCrumbPlanLabel\":\"Select Plan\",\"showDynamicBundleOrderNote\":false,\"showOutOfStockProduct\":true,\"disabledSellingPlanSelectionValidation\":false,\"disableViewShopifyProduct\":false,\"bundleDiscountLabel\":\"Discount\",\"topBarDiscountRequiredAmountTitlePrefix\":\"Add {{currency}}{{remainingAmount}} more to unlock \",\"volumeDiscountAppliedQuantityRewardsLabel\":\"Applied: buy {{quantity}} get {{discount}}{{discount_type}}\",\"bundleNotEligibleLabel\":\"You're not eligible to purchase this bundle!\",\"reviewOrderProductsLabel\":\"Bundle Products\",\"outOfStockLabel\":\"Out Of Stock\",\"showUnitPrice\":false,\"buyXGetYFreeGiftDiscountText\":\"Enjoy the free product\",\"showDescriptionPopup\":true,\"readMoreText\":\"Read More\",\"totalBundleProductsAddedLabel\":\"{{total_bundle_items}} Products Added\",\"bundleMinimumQuantityLabel\":\"Add minimum {{minimum_quantity}} product\",\"noSourceProductSelectedLabel\":\"No source product selected.\",\"nonListedProductText\":\"Non-Listed\",\"buyXNoProductSelectedLabel\":\"No product selected (Buy X)\",\"volumeDiscountQuantityRewardsLabel\":\"Buy {{quantity}} quantity and get {{discount}}{{discount_type}} discount!\",\"freeShippingLabel\":\"Free Shipping\",\"previousButtonLabel\":\"Previous Step\",\"draftBundlePageTitle\":\"Oops! This bundle is temporarily unavailable.\",\"productDetailsMaximumDescriptionCount\":300,\"oneTimeOnlyLabel\":\"One time only\",\"buyXAnyNumberOfProductChooseLabel\":\"Choose any number of products\",\"productFilterConfig\":\"{\\\"enabled\\\":false,\\\"filters\\\":[]}\",\"volumeAmountDiscountQuantityRewardsLabel\":\"Buy {{quantity}} quantity and get {{currency}}{{discount}} discount!\",\"disableDiscountedPricingRedirectToCart\":false,\"volumeDiscountCombinedWithOrderDiscount\":true,\"dynamicBundleDiscountAppliesOnOneTimePurchase\":true,\"choosePlanButtonLabel\":\"Choose Plan\",\"enableAnnouncementBar\":false,\"bundleQuantityLabel\":\"{{quantity}}x\",\"showClassicBundleWidgetInChildProduct\":false,\"shippingDiscountAppliesOnOneTimePurchase\":true,\"classicBundleLinkLabel\":\"Go to the Classic Bundle\",\"topBarDiscountRequiredQuantityTitlePrefix\":\"Add {{remainingQuantity}} more item(s) to unlock \",\"bundleDetailsLabel\":\"Your bundle:\",\"buyXGetYDiscountAppliesOnOneTimePurchase\":true,\"volumeDiscountAppliedSpentAmountRewardsLabel\":\"Applied: spend {{spent_amount}}{{currency}} get {{discount}}{{discount_type}}\",\"enableAutoRemoveRelevantBundleItemInCart\":false,\"bundleModalShowRewardsLabel\":\"Show all rewards\",\"topBarFreeShippingTitlePostfix\":\"free shipping\",\"buyXGetYDiscountRecurringCycleLimit\":0,\"cartAndCheckoutMandatoryProductValidationMessage\":\"This bundle or discount must include all required products and they cannot be removed.\",\"volumeAmountDiscountSpentAmountRewardsLabel\":\"Spend {{currency}}{{spent_amount}} and get {{currency}}{{discount}} discount!\",\"notApplicableForOneTimeNotificationTitle\":\"Not applicable for one time\",\"showDiscountToNonEligibleCustomers\":false,\"primaryDisabledTextColor\":\"#ffffff\",\"draftBundlePageSubTitle\":\"In the meantime, check out our latest offers and discounts!\",\"volumeDiscountCombinedWithShippingDiscount\":true,\"bundleSpentAmountRewardsLabel\":\"Spent {{spent_amount}} worth of items, get {{discount}}{{discount_type}} discount\",\"nextButtonLabel\":\"Next Step\",\"classicBundleDescriptionLabel\":\"Your bundle contains the following products.\",\"bundleBottomHtml\":\"\",\"sectionMinimumQuantityValidationLabel\":\"Minimum quantity not selected for: {{section_name}}!\",\"volumeDiscountAppliesOnSubscription\":true,\"dynamicBundleDiscountCombinedWithProductDiscount\":true,\"buyXGetYAnyNumberOfGiftProductLabel\":\"Choose any number of gift products\",\"descriptionLength\":200,\"bundleDiscountNote\":\"Discounts will be applied at checkout.\",\"bundleModalCloseRewardsLabel\":\"Close all rewards\",\"dockbarCurrentRewardLabel\":\"You got {{discount_amount}}{{discount_type}} discount\",\"productDetailsAddToBundleLabel\":\"Add to bundle\",\"cartAndCheckoutQuantityValidationMessage\":\"Orders must match the quantity range: Min {{min_quantity}}, Max {{max_quantity}}\",\"bundleNoProductSelectedLabel\":\"No product selected\",\"checkoutInfoLabel\":\"Add products from each section to enable the add to cart button.\",\"enableShowMultipleImages\":false,\"redirectToCartPageOnCartIconClick\":true,\"freeShippingDiscountCodeText\":\"FREE_SHIPPING_{{bundle_id}}\",\"customOfferLinkButtonLabel\":\"Explore Offers\",\"oneTimePurchaseLabel\":\"One Time Purchase\",\"bundleMaximumOrderAmountLabel\":\"Add maximum {{maximum_amount}} order amount\",\"enableBundleProductAscOrderView\":true,\"productAddedToBundleNotificationTitle\":\"Added to bundle\",\"showClassicBundleProductVariant\":false,\"customHtmlInject\":\"[]\",\"breadCrumbReviewSectionLabel\":\"Review Section\"}","bundleTopHtml":"","bundleBottomHtml":"","proceedToCheckoutButtonText":"","chooseProductsText":"Products","productAddToBundleLabel":"Add","productDetailsAddToBundleLabel":"Add to bundle","productDetailsMaximumDescriptionCount":300,"variantSelectionDropDownLabel":"Variants","sellingPlanSelectionDropDownLabel":"Purchase Options","dockbarHeadingLabel":"Bundle","dockbarCurrentRewardLabel":"You got {{discount_amount}}{{discount_type}} discount","dockbarDescriptionLabel":"You're getting the most rewards!","bundleModalHeaderLabel":"Your Bundle({{total_quantity}})","bundleModalShowRewardsLabel":"Show all rewards","bundleModalCloseRewardsLabel":"Close all rewards","bundleQuantityRewardsLabel":"Add {{quantity}} item, get {{discount}}{{discount_type}} discount","bundleSpentAmountRewardsLabel":"Spent {{spent_amount}} worth of items, get {{discount}}{{discount_type}} discount","bundleQuantityLabel":"{{quantity}}x","bundleSubtotalLabel":"Subtotal","bundleDiscountLabel":"Discount","bundleTotalLabel":"Total","bundleCheckoutLabel":"Checkout","bundleMinimumQuantityLabel":"Add minimum {{minimum_quantity}} product","bundleMaximumQuantityLabel":"Add maximum up to {{maximum_quantity}} product","bundleMinimumOrderAmountLabel":"Add minimum {{minimum_amount}} order amount","oneTimePurchaseLabel":"One Time Purchase","noItemsInBundle":"No items added to the bundle","modalOpenOnAddToCart":true,"productAddedToBundleNotificationTitle":"Added to bundle","productAddedToBundleNotificationDescription":"{{product_title}} added to bundle.","chooseAPlanLabel":"Choose Plan","nextButtonLabel":"Next Step","previousButtonLabel":"Previous Step","chooseSourceProductValidationLabel":"Please choose source product!","chooseAssociatedProductsValidationLabel":"Please choose associated products!","choosePlanButtonLabel":"Choose Plan","selectedSourceProductLabel":"Selected","noSourceProductSelectedLabel":"No source product selected.","reviewOrderLabel":"Review Bundle","reviewOrderDescription":"Check your items and select your required frequency plan","reviewOrderProductsLabel":"Bundle Products","reviewOrderInfoLabel":"","orderNoteLabel":"Order Note","selectedProgressLabelText":"{{total_bundle_items}} item added with a minimum quantity of {{minimum_quantity}}","availableOnlySubscriptionLabel":"Available Only On Subscription","subscriptionAvailableLabel":"Subscription Available","oneTimeOnlyLabel":"One time only","switchOnTimeLabel":"One Time","switchSubscriptionLabel":"Subscribe & Save","breadCrumbPlanLabel":"Select Plan","breadCrumbProductsLabel":"Choose Products","breadCrumbReviewBundleLabel":"Review Bundle","showDescriptionPopup":true,"tieredDiscountLabel":"{{discount_amount}}{{discount_type}} Discount","emptyProductImage":"https://cdn.shopify.com/s/files/1/0661/9224/4900/files/EmptyImage.jpg?v=1718447038","outOfStockLabel":"Out Of Stock","notApplicableForOneTimeNotificationTitle":"Not applicable for one time","notApplicableForSubscribeAndSaveNotificationTitle":"Not applicable for subscribe & save","disableProductDescription":false,"descriptionLength":200,"readLessText":"Read Less","readMoreText":"Read More","bundleNoProductSelectedLabel":"No product selected","customHtmlInject":"[]","bundleDetailsLabel":"Your bundle:","bundleDiscountNote":"Discounts will be applied at checkout.","fixedDiscountText":"Enjoy a fixed discount of {{currency}}{{discount_value}} on your purchase!","percentDiscountText":"Get {{discount_value}}% off on your purchase!","hideVariantSelectLabel":false,"hidePurchaseOptionSelectLabel":false,"primaryColor":"#0d3373","primaryTextColor":"#000000","secondaryTextColor":"#b9c300","primaryHoverColor":"#0d3373","primaryDisabledColor":"#333333","primaryDisabledTextColor":"#ffffff","fieldDisabledBackgroundColor":"#ffffff","disabledTextColor":"#6B7280","volumeDiscountSaveRewardsLabel":"Save {{discount}}{{discount_type}}!","volumeDiscountQuantityRewardsLabel":"Buy {{quantity}} quantity and get {{discount}}{{discount_type}} discount!","volumeDiscountSpentAmountRewardsLabel":"Spend {{currency}}{{spent_amount}} and get {{discount}}{{discount_type}} discount!","volumeDiscountAppliedQuantityRewardsLabel":"Applied: buy {{quantity}} get {{discount}}{{discount_type}}","volumeDiscountAppliedSpentAmountRewardsLabel":"Applied: spend {{spent_amount}}{{currency}} get {{discount}}{{discount_type}}","volumeDiscountNextApplicableQuantityRewardsLabel":"Buy {{quantity}} get {{discount}}{{discount_type}}","volumeDiscountNextApplicableSpentAmountRewardsLabel":"Spend {{spent_amount}}{{currency}} get {{discount}}{{discount_type}}","addingProductsToBundle":"Adding products to bundle","freeShippingLabel":"Free Shipping","requiredBundleProductLabel":"Your bundle needs {{min_product_count}} more item(s).","enableProductDetailButton":false,"requiredLoginValidationLabel":"Please log in to purchase this bundle!","bundleNotEligibleLabel":"You're not eligible to purchase this bundle!","loginAlertTextLabel":"You need to login to purchase this bundle.","loginAlertLinkLabel":"Click here to login","customSignInLink":"","shippingDiscountLabel":"{{discount}}{{discount_type}} Shipping Discount","classicBundleDescriptionLabel":"Your bundle contains the following products.","singleParentProductDirectRedirectToChildProducts":true,"buyXGetYFixedDiscountText":"Enjoy a fixed discount of {{discount_value}} {{currency}}","buyXGetYPercentDiscountText":"Enjoy a percentage discount of {{discount_value}}%","buyXGetYFreeGiftDiscountText":"Enjoy the free product","buyXGetYAddToCartLabel":"Add to cart","buyXGetYFreeLabel":"Free","disableDiscountedPricingRedirectToCart":false,"nonListedProductText":"Non-Listed","preventClickableProductsOnCart":false,"buyXGetYChooseProductLabel":"Choose Product","showSubscriptionPlanDescription":false,"volumeAmountDiscountSaveRewardsLabel":"Save {{currency}}{{discount}}!","volumeAmountDiscountQuantityRewardsLabel":"Buy {{quantity}} quantity and get {{currency}}{{discount}} discount!","volumeAmountDiscountSpentAmountRewardsLabel":"Spend {{currency}}{{spent_amount}} and get {{currency}}{{discount}} discount!","enableManualBundleBlockIntegration":false,"cartAndCheckoutQuantityValidationMessage":"Orders must match the quantity range: Min {{min_quantity}}, Max {{max_quantity}}","dynamicBundleDiscountCodeText":"BUNDLE_DISCOUNT_{{bundle_id}}","discountUsageLimitExceedLabel":"You have exceeded the bundle usage limit","disableViewShopifyProduct":false,"redirectToCartPageOnCartIconClick":true,"sectionLabel":"Section","chooseSectionLabel":"Choose Section","chooseSectionProductsLabel":"Choose Section Products","breadCrumbSelectSectionLabel":"Select Section","breadCrumbReviewSectionLabel":"Review Section","checkoutInfoLabel":"Add products from each section to enable the add to cart button.","sectionNoProductSelectedValidationLabel":"No product selected for: {{section_name}}!","sectionMinimumQuantityValidationLabel":"Minimum quantity not selected for: {{section_name}}!","sectionMaximumQuantityValidationLabel":"Maximum quantity not selected for: {{section_name}}!","dynamicBundleDiscountCombinedWithProductDiscount":true,"dynamicBundleDiscountCombinedWithShippingDiscount":true,"dynamicBundleDiscountCombinedWithOrderDiscount":true,"volumeDiscountCombinedWithProductDiscount":true,"volumeDiscountCombinedWithShippingDiscount":true,"volumeDiscountCombinedWithOrderDiscount":true,"productDiscountCombinedWithProductDiscount":true,"productDiscountCombinedWithShippingDiscount":true,"productDiscountCombinedWithOrderDiscount":true,"buyXGetYDiscountCombinedWithProductDiscount":true,"buyXGetYDiscountCombinedWithShippingDiscount":true,"buyXGetYDiscountCombinedWithOrderDiscount":true,"shippingDiscountCombinedWithProductDiscount":true,"shippingDiscountCombinedWithOrderDiscount":true,"showDynamicBundleOrderNote":false,"bundleMaximumOrderAmountLabel":"Add maximum {{maximum_amount}} order amount","buyXGetYQuantityValidationLabel":"Add {{product_quantity}} quantities of the gift product (Get Y)","selectedGiftProductProgressLabelText":"{{selected_product_quantity}} gift products added, The required quantity is {{required_product_quantity}}","draftBundlePageTitle":"Oops! This bundle is temporarily unavailable.","draftBundlePageSubTitle":"In the meantime, check out our latest offers and discounts!","customOfferLink":"collections/all","customOfferLinkButtonLabel":"Explore Offers","enableParentProductDetailButton":false,"sectionTotalLabel":"Section Total","skipSelectSectionPage":false,"buyXGetYGiftProductPriceVisibilityType":"UNIT_PRICE","defaultSelectedPurchaseOptionSwitch":null,"defaultSelectedPurchaseOption":null,"discountTargetType":"VARIANT","enableShowMultipleImages":false,"buyXGetYAnyNumberOfGiftProductLabel":"Choose any number of gift products","showDiscountToNonEligibleCustomers":false,"dynamicBundleDiscountRecurringCycleLimit":0,"dynamicBundleDiscountAppliesOnOneTimePurchase":true,"dynamicBundleDiscountAppliesOnSubscription":true,"volumeDiscountRecurringCycleLimit":0,"volumeDiscountAppliesOnOneTimePurchase":true,"volumeDiscountAppliesOnSubscription":true,"productDiscountRecurringCycleLimit":0,"productDiscountAppliesOnOneTimePurchase":true,"productDiscountAppliesOnSubscription":true,"buyXGetYDiscountRecurringCycleLimit":0,"buyXGetYDiscountAppliesOnOneTimePurchase":true,"buyXGetYDiscountAppliesOnSubscription":true,"shippingDiscountRecurringCycleLimit":0,"shippingDiscountAppliesOnOneTimePurchase":true,"shippingDiscountAppliesOnSubscription":true,"buyXNoProductSelectedLabel":"No product selected (Buy X)","getYNoProductSelectedLabel":"No gift product selected (Get Y)","buyXQuantityValidationLabel":"Add {{product_quantity}} quantities of the product (Bux X)","buyXAnyNumberOfProductChooseLabel":"Choose any number of products","freeShippingDiscountCodeText":"FREE_SHIPPING_{{bundle_id}}","includedSubscriptionPlans":"","excludeSubscriptionPlans":"","enableBuyXGetYWidgetMergeAsOptions":false,"buyXGetYMergedWidgetTitle":"Select Buy X Get Y Discount","showClassicBundleProductVariant":false,"showProductPerPage":50,"loadMoreButtonLabel":"Load More","enableBundleProductAscOrderView":true,"cartAndCheckoutMandatoryProductValidationMessage":"This bundle or discount must include all required products and they cannot be removed.","sellingPlanNameSortOrder":"ASC","showVendorName":null,"disableFitImage":false,"enableAutoRemoveRelevantBundleItemInCart":false,"enableBundleProductFilter":null,"productFilterConfig":"{\"enabled\":false,\"filters\":[]}","enableMaxDiscountCap":null,"maxDiscountCapValue":null,"classicBundleLinkLabel":"Go to the Classic Bundle","showPriceAsDecimals":false,"showClassicBundleWidgetInChildProduct":false,"showOutOfStockProduct":true,"showDraftProduct":false,"totalBundleProductsAddedLabel":"{{total_bundle_items}} Products Added","bundleProductsQuantityLabel":"{{quantity}}x quantity","showUnitPrice":false,"productDetailsViewType":"SHOW_PRODUCT_POPUP","disableRefreshSellingPlan":false,"enableShippingDiscountBar":null,"enableVolumeDiscountBar":null,"defaultDiscountBarMessage":"Welcome to our store","discountMessageInterval":3000,"addedBundleToTheCart":null,"disabledSellingPlanSelectionValidation":false,"volumeDiscountVariantSelectLabel":"Denominations","enableScrollingToBundleSection":false,"enableClassicBundleRecreation":true,"topBarDiscountUnlockTitlePrefix":"You've unlocked ","topBarDiscountRequiredAmountTitlePrefix":"Add {{currency}}{{remainingAmount}} more to unlock ","topBarDiscountRequiredQuantityTitlePrefix":"Add {{remainingQuantity}} more item(s) to unlock ","topBarPercentDiscountTitlePostfix":"{{discount}}% off on shipping","topBarFixedDiscountTitlePostfix":"{{currency}}{{discount}} off on shipping","topBarFreeShippingTitlePostfix":"free shipping","checkInventoryQuantity":false,"hideBundleToastNotification":false,"enableBundleRecreation":null,"enableAnnouncementBar":false,"enableAnnouncementBarAutoRotate":true,"bundleListTitle":"List of Bundles and Discounted Pricing","bundleListDescription":"Explore our Bundles and Discounted Pricing and enjoy exclusive discounts when you buy products together","bundleListViewDetailsButtonLabel":"View Details","classicBundleTypeLabel":"Classic Bundle","dynamicPricingBundleTypeLabel":"Dynamic Pricing Bundle","fixedPricingBundleTypeLabel":"Fixed Pricing Bundle","sectionedBundleTypeLabel":"Sectioned Bundle","volumeDiscountTypeLabel":"Volume Discount","productDiscountTypeLabel":"Product Discount","buyXGetYDiscountTypeLabel":"Buy X Get Y Discount","bundlePageBackgroundColor":"#FAFAF9","productCardBackgroundColor":"#ffffff","buttonBackgroundColor":"#0d3373","showPrepaidPerDeliveryPrice":null,"prepaidPerDeliveryPriceLabel":null};
if (!bundleSettings?.enableAutoRemoveRelevantBundleItemInCart) return;
const originalFetch = window.fetch;
window.fetch = async function (...args) {
const [resource, config] = args;
const isRemoveRequest = typeof resource === 'string' &&
resource.includes('/cart/change') &&
config?.method === 'POST';
if (!isRemoveRequest) {
return originalFetch(...args);
}
let bodyData = {};
try {
bodyData = JSON.parse(config.body);
} catch (e) {
console.warn('Failed to parse request body', e);
return originalFetch(...args);
}
if (bodyData.quantity !== 0) {
return originalFetch(...args);
}
const cart = await fetch('/cart.js').then(res => res.json());
const removingLineIndex = parseInt(bodyData?.line) - 1;
const removingItem = cart?.items[removingLineIndex];
const bundleId = removingItem?.properties?.["_appstle-bb-id"];
if (!bundleId) {
return originalFetch(...args);
}
const updates = {};
cart?.items.forEach(item => {
if (item?.properties?.["_appstle-bb-id"] === bundleId) {
updates[item?.key] = 0;
}
});
const hasNonBundleItems = cart?.items.some(item => !item?.properties?.["_appstle-bb-id"]);
await fetch('/cart/update.js', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ updates })
});
if (hasNonBundleItems) {
const sections = bodyData?.sections;
const sectionsUrl = bodyData?.sections_url || '/cart';
const htmlResponse = await fetch(
`/?sections=${sections.join(',')}§ions_url=${encodeURIComponent(sectionsUrl)}`
);
const htmlData = await htmlResponse.json();
return new Response(JSON.stringify({
status: 'bundle removed',
sections: htmlData
}), {
status: 200,
headers: { 'Content-Type': 'application/json' }
});
}
return originalFetch(...args);
};
});
document.addEventListener('DOMContentLoaded', () => {
const originalFetch = window.fetch;
window.fetch = async function (...args) {
const [resource, config] = args;
const isCartUpdate = typeof resource === 'string' &&
(resource.includes('/cart/change') || resource.includes('/cart/update')) &&
config?.method === 'POST';
if (!isCartUpdate) {
return originalFetch(...args);
}
const response = await originalFetch(...args);
const cart = await fetch('/cart.js').then(res => res.json());
const hasBundleItems = cart?.items.some(item =>
item?.properties?.["_appstle-bb-id"]
);
const freeProductItems = cart?.items.filter(item =>
item?.properties?.["_appstle_free_product"] === true ||
item?.properties?.["_appstle_free_product"] === "true"
);
if (!hasBundleItems && freeProductItems.length > 0) {
const updates = {};
freeProductItems.forEach(item => {
updates[item?.key] = 0;
});
await fetch('/cart/update.js', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ updates })
});
let bodyData = {};
try {
bodyData = JSON.parse(config.body);
} catch (e) {
}
if (bodyData?.sections) {
const sections = bodyData.sections;
const sectionsUrl = bodyData.sections_url || '/cart';
const htmlResponse = await fetch(
`/?sections=${sections.join(',')}§ions_url=${encodeURIComponent(sectionsUrl)}`
);
const htmlData = await htmlResponse.json();
return new Response(JSON.stringify({
status: 'free product removed',
sections: htmlData
}), {
status: 200,
headers: { 'Content-Type': 'application/json' }
});
}
}
return response;
};
});