Jump to content

Launch JS from graphic in module


smartrich

Recommended Posts

I have a script which will place a store locator in a module position.

 

However, I want to place a graphic in a module and, when clicked, the store locator will open in a new window.

 

Here's the code. How do I do this?

 

<!-- Start of Zen Store Locator -->
<script type="text/javascript">(function(){var scr=document.createElement("script"),s=document.getElementsByTagName("script")[0];scr.id="zsl-script";scr.type="text/javascript";scr.async=true;scr.src="https://cdn.zenstorelocator.com/rnxgnXo1.js";s.parentNode.insertBefore(scr,s)})();</script><div id="zen-store-locator"></div>
<!-- End of Zen Store Locator -->

 

Thanks so much for your help ... love my Prestashop and the forum ... this has been a great experience with a great product and great support.

 

~rich

Link to comment
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...