Make a selection

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

Laurel
Laurel
  • Updated

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, you will be able to continue using the app on a grandfathered plan.
  • New requests for Quantity Breaks will be directed to Custom Pricing. Custom Pricing's Select plans can be used to create quantity breaks. For more information on pricing, please visit Custom Pricing Overview.
  • If you'd like move from Quantity Breaks (standalone) to Custom Pricing, please visit Switch from Quantity Breaks to Custom Pricing.

 


 

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