Answer the question
In order to leave comments, you need to log in
How to implement city selection on woocommerce when viewing a store + inserting a city into a template?
Hey!
There is a site on VP + woocommerce. Standard online store.
What options are there - to make a macro or a variable for displaying the name of the city chosen by the visitor in the template?
Or to display the city in the template by url. That is, the city site.ru/spb/katalog/product is present in the URL and the name of the city in Russian is displayed in the template.
shoveled a bunch of pages of issuance of Google and Yandex. found nothing of the sort. multisite - not suitable.
An example of displaying the city when selected: www.mvideo.ru/televizory-i-video?cityId=CityCZ_1854
Answer the question
In order to leave comments, you need to log in
I made a city definition on my site through the Yandex api and write the value to the cookie
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question