V
V
Vadim Yagofarov2019-04-21 17:31:20
opencart
Vadim Yagofarov, 2019-04-21 17:31:20

How to determine the city by ip on cms opencart?

Good afternoon! How to determine the city by ip on cms opencart, namely how to do it right? Is there a plug-in for opencart? Or try to find a ready-made script?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Fedorov, 2019-04-21
@GIRUPC

City by IP address
Make a service for determining the city, which will simply access the API via CURL or Guzzle
Make a simple controller to which you will cling to from the front via Ajax, and keep the value in the session

G
Gip, 2019-04-22
@Giperoglif

install ipgeobase extension by composer and use

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question