Top

Change the Cart Count to Show the Right Number of Products

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, follow these steps:

  1. From "Shopify Admin", select Online Store.

    select online store 

  2. Select Actions.

    Select Actions 

  3. Select Edit code.

    Select Edit code 

  4. Under "Snippets", ensure bold-cart.liquid and bold-cart-items.liquid exist.

    Note: If any of these snippets don't exist, refer to Product Options 1.0 Install Instructions for help adding them.

    ensure the snippets are in place 

  5. Under "Layout", select theme.liquid.

    select theme.liquid 

  6. Add:

    {% include 'bold-product' %}

    right before the </head> tag if it does not already exist.

    add line of code 

  7. Change all instances of:

    cart.item_count

    to:

    bold_cart_item_count

    change all instances 

  8. Select Save.

    select save 

That's it!

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.