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!
We want to take a moment to celebrate the incredible ways you all engage with the Shopi...
By JasonH Oct 15, 2024Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024