Only Show 'Ship to Multiple Address' Toggle if More Than 1 Item in Cart

Follow

1. Open up your theme editor by going to Shopify Admin --> Online Store --> Themes --> "Your Theme" --> Edit Code.

mceclip0.png

2. Open up your cart.liquid template file by going under the "Templates" heading, and clicking on cart.liquid

mceclip0.png

3. Copy the below snippet, and paste it at the top of your cart.liquid file.

{% if cart.item_count <= 1 %}
<style>
.gs__toggle-box {
display: none !important;
}
</style>
{% endif %}

4. Click Save.

0 out of 0 found this helpful

Comments

2 comments
  • This is not working for me -- one item in cart, and Ship to multiple addresses checkbox is still showing.

    0
    Comment actions Permalink
  • It's programmed as an ID, not a class, so it should be #gs__toggle-box

    0
    Comment actions Permalink

Please sign in to leave a comment.