Hide _io_order_group and _io_parent_order_group from cart
Last updated
Last updated
When using Infinite Options' Legacy Product Bundles feature, there may be some strange text (e.g. _io_order_group, _io_parent_order_group) that appears at the cart screen.
Some themes hide this data by default. If it is displaying on your theme, follow these steps to hide the data.
1. From your Shopify admin, click Online Store to arrive at the Themes page.
2. Find the theme you want to edit, click the Actions ▼ button, then click Edit code.
3. On the left side, under Templates, check to see if you have a cart.liquid file. If your theme's cart.liquid file doesn't contain much code, it may be pointing to a different file. In most cases, the code will be located in the cart-template.liquid file, within the Sections folder.
If your theme does not have a cart.liquid file and if you see a cart.json file, locate a file called main-cart-items.liquid file in the Sections folder.
1. If you have found a cart.liquid file or cart-template.liquid file in your theme, perform a search using keyboard shortcuts (Ctrl F or ⌘ F) for:
for p in item.properties
If you are using the Debut theme, please look for for p in properties.
If you have found a main-cart-items.liquid file in your theme, perform a search using keyboard shortcuts (Ctrl F or ⌘ F) for:
for property in item.properties
2. For the cart.liquid or cart-template.liquid file, copy and paste the following code snippet right under the line of code that we have just found, as seen below:
{% if p.first contains '_io_' %}
{% continue %}
{% endif %}
For the main-cart-items.liquid file, copy and paste the following code snippet right under the line of code that we have just found, as seen below:
{% if property.first contains '_io_' %}
{% continue %}
{% endif %}
3. Save your changes.