Personalized checkout and custom promotions with Shopify Scripts
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.
Use this as your in Edmonton test
is_customer_in_edmonton = Input.cart.shipping_address.city.upcase == 'EDMONTON'
Hi there!
If you want to hide "pick up" button from visitors who is not in Edmonton, you might want to set up location-specific content using GeoIP technologies.
Here is one solution worth checking out: Geo Targetly, particularly, its GeoContent tool. It can help you simply show or hide buttons, forms, or other content based on your visitors' geolocations. The tool is easy to set up rules within a few steps. You don't need to code yourself. The tool will generate javascript code accordingly for you to add to your website.
Hope it helps!
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024