Top

Remove the App Variant Name (2+, 3+, etc.) from the Cart Page

To remove the app variant name from the cart page, 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 "Templates", select cart.liquid.

    Note: If your theme uses sections, you may need to place this in a different file such as cart-template.liquid under "sections".

    select cart.liquid 

  5. Look for a line containing the item title; it should be similar to this:
    <a href="{{ item.product.url }}">{{ item.title | escape }}

    look for a line containing item.title 

  6. Add this code to the end of the line:
    | remove: '2+'

    The result should look like this:

    <a href="{{ item.product.url }}">{{ item.title | escape | remove: '2+' }}

    resule of code 

  7. Select Save.

    select save 

That's it!

Note: The same can be done if you have multiple instances of text you wish to remove.  You'd just need to add the remove code again with the new text you want to remove, after the prior instance, like this:

<a href="{{ item.product.url }}">{{ item.title | escape | remove: '2+' | remove: '3+' }}

Warning!

This workaround will only hide the 2+, 3+, etc. from appearing on the cart page. Once the customer proceeds through to the checkout, these variant titles will be displayed. Once in Shopify's secure checkout area, have no access nor can we change any code here.