The majority of merchants sell virtual gift cards to their customers which require no shipment and can not be picked up or delivered. If you are in the same boat follow the steps below.

Within Shopify click Online Store

Click Actions and then Edit code

Open the cart.liquid file and locate the line <div id="storePickupApp"></div>

Find and replace <div id="storePickupApp"></div> with the following code

{% assign cart_contains_gift_card = false %}
{% assign cart_contains_physical_items = false %}

{% for item in cart.items %}
 {% if item.product.handle contains "gift-card" %}
   {% assign cart_contains_gift_card = true %}
 {% else %}
   {% assign cart_contains_physical_items = true %}
 {% endif %}
{% endfor %}

{% if cart_contains_physical_items %}
<div id="storePickupApp"></div>
{% endif %}

Click Save

Now when a customers shopping basket contains only a gift card the Store Pickup + Delivery widget won't be displayed. Your customers can proceed to the checkout process as normal. 

If your customers basket contains both a gift card and another physical item the Store Pickup + Delivery widget will appear.

Did this answer your question?