Why isn't order.pickup_in_store? working correctly for in-store orders?

Why isn't order.pickup_in_store? working correctly for in-store orders?

winsy
Shopify Partner
2 0 1

I set it up to allow in store pickup and successfully placed a test order. 

winsy_1-1696649347622.png
Then I want to determine if the current order is a store pickup order by "order.pickup_in_store?" on the order details page:

{% if order.pickup_in_store? %}
    Bring your confirmation email when you come to collect your order.
{% else %}
    test message
{% endif %}

The end result is a "test message":
winsy_2-1696649925635.png

 

Documentation for "order.pickup_in_store?":https://shopify.dev/docs/api/liquid/objects/order#order-pickup_in_store?

winsy_0-1696650232095.png

 

Replies 4 (4)

PaulNewton
Shopify Partner
7075 629 1484

Liquid for notifications and themes are a annoyingly a bit different they just don't make it glaringly obvious.

Your looking for delivery_method

https://help.shopify.com/en/manual/orders/notifications/email-variables 

 

For the order confirmation email there should be a bit at the top you can reference

https://admin.shopify.com/email_templates/order_confirmation/edit 

....
  {% case delivery_method %}
      {% when 'pick-up' %}
        You’ll receive an email when your order is ready for pickup.
      {% when 'local' %}
.....

 

Good Hunting.

Contact [email protected] for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


alxdna
Shopify Partner
1 0 1

I believe @winsy was asking about this on the orders page, not an email. I am also currently not seeing "order.pickup_in_store?" work on the orders page. Did this stop working? 

NickNovo
Shopify Partner
5 0 1

We are having the same issue using it in the packing slips template.

LaurieZ
Shopify Partner
5 1 7

Same issue, this is quite annoying... Any solution ?