If you are a Shopify Plus customer we have some great news! You can now hide the pickup address fields from appearing in the checkout with a couple of lines of code. This helps eliminate any customer confusion.

  1. Open your themes checkout.liquid file

  2. Copy and paste the following code above the ##{{ tracking_code }} line

    {% if checkout.attributes['Checkout-Method'] == 'pickup' %}
    <script type="text/javascript">
      document.querySelector('.section--shipping-address [data-address-field="address1"]').style.display = 'none';
      document.querySelector('.section--shipping-address [data-address-field="address2"]').style.display = 'none';
      document.querySelector('.section--shipping-address [data-address-field="city"]').style.display = 'none';
      document.querySelector('.section--shipping-address [data-address-field="country"]').style.display = 'none';
      document.querySelector('.section--shipping-address [data-address-field="zip"]').style.display = 'none';
    </script>
    {% endif %}

  3. Click Save

Did this answer your question?