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.
To remove the app variant name from the cart page, please follow these steps.
- From Shopify's admin, select Online Store.
- Select Actions.
- Select Edit code.
- 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".
- Look for a line containing the item title; it should be similar to this:
<a href="{{ item.product.url }}">{{ item.title | escape }}
- 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+' }}
- Select Save.
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+' }}
That's it!
Next Steps:
- Set up a Quantity Breaks Group
- Add the Quantity Box to the Product Page
- Customize the Quantity Breaks Grid