Signup

Hide pickup address field (Shopify Plus)

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('[data-address-field="address1"]').style.display = 'none';
      document.querySelector('[data-address-field="address2"]').style.display = 'none';
      document.querySelector('[data-address-field="city"]').style.display = 'none';
      document.querySelector('[data-address-field="country"]').style.display = 'none';
      document.querySelector('[data-address-field="zip"]').style.display = 'none';
    </script>
    {% endif %}
  3. Click Save 
A
Andrew is the author of this solution article.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.