Remove Quantity Selector from Checkout Page District Theme

Shopify Partner
8 0 0

Hey,

So all the products in our store https://hickmet.myshopify.com are one-offs so I am wanting to remove the quantity selector from our cart pages.

I have tried wrapping this section of the code in cart-template.liquid with comment tags but that didn't hide it

 

</div>
                    <div class="td cart-item-price">
                      <span class="money">{{ item.price | money }}</span>
                    </div>
                    <div class="td cart-item-quantity">
                      <span>
                        <div class="quantity-select">
                          <div class="button-wrapper">
                            <button class="adjust adjust-minus">-</button>
                          </div>
                          <div class="input-wrapper">
                            <input type="text" class="quantity" min="1" pattern="[0-9]*" name="updates[]" id="updates_{{ item.id }}" value="{{ item.quantity }}" >
                          </div>
                          <div class="button-wrapper">
                            <button class="adjust adjust-plus">+</button>
                          </div>
                        </div>
                      </span>
                      <a href="/cart/change?line={{ forloop.index }}&amp;quantity=0" class="remove">{{ 'cart.general.remove' | t }}</a>
                    </div>
                    <div class="td cart-item-total">

 

Any ideas or assistance would be greatly appreciated.

Thanks Emma

0 Likes
Shopify Partner
8 0 0

Sorry just to clarify it is in the cart / shopping basket page that I am trying to remove the quantity selector from.

https://hickmet.myshopify.com/cart

Looking forward to some assistance with this :)

Emma

0 Likes
New Member
1 0 0

Hi, I was wondering how you figured it out, Im interested in doing it as well

0 Likes
Explorer
49 2 10

Hey @Emma_Rampton1 , @winnatti ,

I just want to make sure that I fully understand your need - you'd like to remove the 'Update cart' button and to make the cart update automatically after any quantity change by a user, or do you want to entirely remove the ability to change the quantity?

You can entirely remove the 'update cart' button and make the cart automatically update when a quantity change occurs using Quanter - an app that automatically updates cart on every quantity change and also allows to remove the 'Update cart' button.

 

Regards

0 Likes