首页Category Blogmagento整合Google 地图

magento整合Google 地图

PDF打印E-mail

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>

评论次数 (0)

订阅评论的RSS

撰写评论

减小撰写框 | 增大撰写框

busy

新闻公告

17magento.com停止使用,同时启用新的域名http://www.magentochina.org 另外http://www.magentochinese.org作 为备用域名

在线客服

LiveZilla Live Help