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 thecheckout.liquid
file in your theme yet, you need to manually add this file according to Shopify checkout.liquid guide.
Hide the pickup address fields
Open the
checkout.liquid
file in your theme.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 %}Click Save.