Jump to content
axafarm

Script to load google maps inside .tpl page

Recommended Posts

Salut,

Vreau sa va intreb daca e ok sa fac chestia asta, desi nu am reusit sa fac o tema child avand niste erori pe care nu am reusit sa-mi dau seama ce-s cu ele si lucrez pe cea principala, nu am mai lucrat pana acum in prestashop si parerile sunt impartite. Vreau sa adaug la o pagina .tpl un google maps cu multiple markers si info label, am gasit un modul contentBox care incarca js-urile in footer sau unde vreau eu sa le incarce si acolo am sa adaug partea de js de la google maps si in pagina .tpl este ok sa fac asta de exemplu?

 

<div id="map"></div>
<!-- Replace the value of the key parameter with your own API key. -->

{literal}
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCkUOdZ5y7hMm0yrcCQoCvLwzdM6M8s5qk&callback=initMap">
</script>

{/literal}

Ar functiona google maps-ul daca as face asa? 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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