How to add a map to your store on contact us page
I want to add a location map of my address on contact us page. All I did 开发者_运维知识库was copy html from google map and paste it in the static block and call that static block in contact us page but it displayed nothing.
What am I missing or what should I do to get the very clear map of my store?
Here are some of the tips,
Have you cleared the magento cache? If no, then clear them
Are you having a separate CMS page , if so then copy the google code in the content of that page instead of creating a static block and then call them in contact us page.
If u have done all, then make sure that you enabled the contact us page..
Anyway more info can help you to get the correct answers.
Put your google maps iframe to form.phtml file this lines:
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f=q&source=s_q&hl=hu&geocode=&q=IT-Droid,+Szigetszentmikl%C3%B3s,+T%C3%B6k%C3%B6li+%C3%BAt+8,+Magyarorsz%C3%A1g&aq=0&oq=it-dr&sll=37.0625,-95.677068&sspn=54.884801,110.302734&t=h&ie=UTF8&hq=IT-Droid,&hnear=2310+Szigetszentmikl%C3%B3s,+T%C3%B6k%C3%B6li+%C3%BAt+8,+Magyarorsz%C3%A1g&z=14&iwloc=A&cid=14069203674977933958&ll=47.347203,19.044896&output=embed"></iframe><br /><small><a href="https://maps.google.com/maps?f=q&source=embed&hl=hu&geocode=&q=IT-Droid,+Szigetszentmikl%C3%B3s,+T%C3%B6k%C3%B6li+%C3%BAt+8,+Magyarorsz%C3%A1g&aq=0&oq=it-dr&sll=37.0625,-95.677068&sspn=54.884801,110.302734&t=h&ie=UTF8&hq=IT-Droid,&hnear=2310+Szigetszentmikl%C3%B3s,+T%C3%B6k%C3%B6li+%C3%BAt+8,+Magyarorsz%C3%A1g&z=14&iwloc=A&cid=14069203674977933958&ll=47.347203,19.044896" style="color:#0000FF;text-align:left">Nagyobb térképre váltás</a></small>
(like app\design\frontend\base\default\template\contacts\form.phtml) under
<h2 class="legend"><?php echo Mage::helper('contacts')->__('Contact Information') ?></h2>
i just successfully input a google map on my contact page. instead of using a static block, you should use a cms page. just paste the code from google map in the content area under the show editor view, and enable it. that should do the trick. hope it works for you. cheers.
精彩评论