Jump to content

Show and change map for each shop added prestashop

Recommended Posts

Hello Everyone,

I am using Prestashop 1.7.24.

I have created 8 shops (Not multistore) in admin. Now what I need is I want show map for every shop on contact page.

I have display all added shop's address on contact page. On page load map for first shop will display and when any customer will click on any other shop address the previous map location will change to clicked shop's address. 

Here are demo working examples :




I am using the same script and trying to implement in my Prestashop store but its not working.

When I am adding JS script to contact page tpl file then its not working and when I am adding the same JS code in custom.js file it works.

So can anyone help me in adding JS code to contact tpl file so that I can make achieve my goal?

FYI : I am using demo code as given in references and will make it dynamic once implement successfully.





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