How to display collections based on city location?

How to display collections based on city location?

Abhishek7503
Shopify Partner
1 0 0

I want to show collections based on the city.

Reply 1 (1)

KuldeepKumar20
Shopify Partner
313 37 65

Hi,

For this you need to create a section for adding all of hidden city.

Also you need to use the Geolocation API for getting the city name.

After that you need to add condition based on the city in the collection liquid file.

 

Thanks

 

For Design, Development and custom changes Hire Me.
If your problem solved then Like & Accept this Solution.
Email ID: codermail30@gmail.com