Top

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

In the cart.liquid look for where the item title is displayed.  The line may differ by theme, but can look similar to this.

 

<a href="{{ item.product.url }}">{{ item.title | escape }}

 

At the end of the line, add the code that is bolded below. In this example, we want to hide the 2+

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

 

The same can be done if you have multiple instances of text you wish to remove.  You'd just need to add another instance of the remove code 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+' }}

 

Heads up!

This workaround will only hide the 2+, 3+, etc from appearing in 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.

 
Have more questions? Submit a request