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

In Quantity Breaks, you can hide the the 2+, 3+, etc. from appearing on the cart page. Please keep in mind, this will only work 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, we have no access nor can we change any code here.

To remove the app variant name from the cart page, please follow the steps below.

 Alert

The Quantity Breaks (standalone) app is no longer available for new installations. If you are currently using Quantity Breaks (standalone), you will be able to continue using the app on a grandfathered plan.

Any new installs of the Quantity Break app will be redirected to Custom Pricing which has a Quantity Breaks plan available. For more information on Custom Pricing, please visit Custom Pricing: Information and Overview.

 


 

Setup

  1. From Shopify's admin, select Online Store.
  2. Select Actions.

    Actions

  3. 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.

    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+' }}

    select save

Was this article helpful?
0 out of 2 found this helpful