All Collections
Advanced
Hide pickup address field (Shopify Plus)
Hide pickup address field (Shopify Plus)
Jelizaveta avatar
Written by Jelizaveta
Updated over a week ago

If you're a Shopify Plus customer, you can now hide the pickup address fields at the checkout. This streamlines the checkout process and prevents any confusion for your customers.


Requirements

  • You need to contact Shopify support to enable access to checkout.liquid.

  • If access to checkout.liquid has been enabled, but you do not have the checkout.liquid file in your theme yet, you need to manually add this file according to Shopify checkout.liquid guide.


Hide the pickup address fields

  1. Open the checkout.liquid file in your theme.

  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?