magento整合Google 地图


最后更新于: 2010-05-15 18:29
作者:Administrator
2010-05-15 18:18
1获取google地图代码
[url]http://maps.google.com/maps/[/url]
获得类似下面的地图代码
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=new+york+city&sll=42.702623,-76.157227&sspn=1.848859,3.532104&ie=UTF8&hq=&hnear=New+York&ll=40.701203,-74.008713&spn=0.007452,0.013797&t=h&z=14&output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&source=embed&hl=en&geocode=&q=new+york+city&sll=42.702623,-76.157227&sspn=1.848859,3.532104&ie=UTF8&hq=&hnear=New+York&ll=40.701203,-74.008713&spn=0.007452,0.013797&t=h&z=14" style="color:#0000FF;text-align:left">View Larger Map</a></small>
2整合到magento页面
如果是想放到联系我们页面
可以app/design/frontend/default/当前模板/template/contacts/下的form.phtml
放到
<form action="getFormAction(); ?>" id="contactForm" method="post">
<div class="head-alt2">
<h4 class="title"><?php echo Mage::helper('contacts')->__('Contact Information') ?></h4>
</div>
下