Wang to check customer location

Highlighted
New Member
22 0 0

hi everyone,

 I want to check the customer who are not in Edmonton, and if they are not in Edmonton, I can hide Pick-up in store option. but something was wrong. it couldn't work.

 

Capture.PNG

0 Likes
Highlighted
Shopify Partner
19 2 1

Use this as your in Edmonton test

is_customer_in_edmonton = Input.cart.shipping_address.city.upcase == 'EDMONTON' 

 

0 Likes