You can easily enable local delivery based upon a customer's tag by using the code shown below.
Place this code in the storepickup-addons.liquid file in your theme.
{% assign disable_delivery = true %} {% if customer %} {% if customer.tags contains "Delivery Allowed" %} {% assign disable_delivery = false %} {% endif %} {% endif %}
In this example, local delivery would be disabled by default and not appear as an option on your shopping cart page. Delivery would only be visible if your customer was logged in and had the tag “Delivery Allowed”.