How to add a remove button in cart (Symmetry theme)

Solved

How to add a remove button in cart (Symmetry theme)

Tony1701
Tourist
6 0 0

 

Hello everyone,

 

I would love to add a remove button in cart (example below). My theme is SYMMETRY

 

Screenshot 2024-10-21 at 8.54.47 AM.png

 

Thanks in advance for your responses.

 

Tony

 

Accepted Solution (1)

tim
Shopify Partner
4505 535 1641

This is an accepted solution.

Actually, the functionality is already there, but it's hidden in the cart drawer, though visible on the cart page.

Just need to unhide it.

 

What you need to do is to go to Customizer => Theme Settings => Custom CSS and add this:

 

/* show remove link in cart drawer */
cart-drawer .cart-item__remove {
  display: inline-block;
  float: right;
  margin-left: auto;
}

/* optional: better align remove link in drawer */
cart-drawer .cart-item__quantity {
  display: flex;
  align-items: center;
}

 

This is theme demo store with code added:

 

Screenshot 2024-10-21 at 2.25.06 PM.png

If my post is helpful, hit the thumb up button -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com

View solution in original post

Replies 4 (4)

Entaice
Trailblazer
163 10 44

To add a remove button in the cart for the Symmetry theme, you’ll need to edit the cart template. Here’s how:

1. Go to your Shopify admin and click on Online Store > Themes.
2. Find the Symmetry theme and click on Actions > Edit code.
3. In the Sections folder, open the `cart-template.liquid` file (it might also be called something like `cart.liquid`).
4. Look for the line where the product items are listed. You should see a loop that starts with `{% for item in cart.items %}`.
5. Within that loop, add a remove button by inserting the following code snippet, usually as a button or link: liquid <button class="remove-button" aria-label="Remove {{ item.product.title }}" onclick="removeItem({{ item.id }})">Remove</button> 
6. You may need to style it with CSS to match your theme.
7. Save your changes & test 

You can increase your revenue by 5% by replacing Shopify's default sorts. Test for free. **Show me how**

namphan
Shopify Partner
2690 349 399

Hi @Tony1701,

Can I send you a collaborator invitation? Because this needs a lot of changes and I will help you check it

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com

Dan-From-Ryviu
Shopify Partner
11721 2296 2476

Hi @Tony1701 

Could you share your product page link so I can check?

- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Amazon Products Importer - Import Amazon Products to Dropship in Your Store!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.

tim
Shopify Partner
4505 535 1641

This is an accepted solution.

Actually, the functionality is already there, but it's hidden in the cart drawer, though visible on the cart page.

Just need to unhide it.

 

What you need to do is to go to Customizer => Theme Settings => Custom CSS and add this:

 

/* show remove link in cart drawer */
cart-drawer .cart-item__remove {
  display: inline-block;
  float: right;
  margin-left: auto;
}

/* optional: better align remove link in drawer */
cart-drawer .cart-item__quantity {
  display: flex;
  align-items: center;
}

 

This is theme demo store with code added:

 

Screenshot 2024-10-21 at 2.25.06 PM.png

If my post is helpful, hit the thumb up button -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com