Jump to content

prestashop根据访问者ip所在国家调用语言包


Recommended Posts

客户第一次访问你的网站,你就显示出客户所在国家的语言包,这样会给用户体验大大加分。

其实做到这点很简单。

1.判断用户ip的国家

2.调用prestashop对应的语言包

代码修改classes/tools.php 文件里的一个方法就能做到。

具体实现点击 查看

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More