Product Options can create visually hidden products in the Shopify store. These "hidden products" can be linked to an option to affect the total price. When the priced option is selected that option product is added to the cart and adds its value to the order total.
To change the cart count to show the same number of products, please follow these steps:
- From Shopify's admin, select Online Store.
- Select Actions.
- Select Edit code.
-
Under "Snippets", ensure bold-cart.liquid and bold-cart-items.liquid exist.
Note: If any of these snippets don't exist, please refer to the Product Options Code Installation Instructions for help adding them.
- Under "Layout", select theme.liquid.
-
Add:
{% include 'bold-product' %}
right before the </head> tag if it does not already exist.
-
Change all instances of:
cart.item_count
to:
bold_cart_item_count
- Select Save.
Note: This will make the number of items in the cart match the number of main products but once the customer enters the checkout the customer will see each option appear as its own product. Unfortunately, we have no control over the Shopify checkout.
That's it!