How can we help?

Basil Khan
Written by Basil Khan

How can I hide bundle contents on customer orders?

Use JavaScript to hide the bundle contents on a customer's status pages

If you would like to hide products that are part of a bundle, you can do so by modifying the Additional scripts on your status page.

1. Navigate to the Settings page.

2. Click on the Checkout section on the page.

3. Scroll down to Order processing section.

4. Add the following code to the Additional scripts section:

<style>.notice.notice--info, .notice.notice--warning{display: none}</style><script>function removeBundleItems(){var e=document.querySelectorAll("[data-product-id]");for(let n=0;n<e.length;n++){var t=e[n];t.innerText.includes("SIMPLE BUNDLES:")&&t.remove()}}document.addEventListener("DOMContentLoaded",removeBundleItems),document.querySelector(".order-summary-toggle").addEventListener("click",function(){setTimeout(removeBundleItems,100)});</script>

Once added, your bundle items should be removed from the order status page that customers can view after the order is placed.

Before adding the additional scripts

After adding the additional scripts