如何在magento上实现对手机或移动设备的支持呢,我这篇文章将详细介绍。 一、官方手机移动设备的支持 官方magento从1.5中,已经内置了手机和移动设备应用的支持,这个功能主要是根据官方定义好的结构,将指定的信息提交好,然后到magento上购买指定的服务,并获取Activation Key...
如何在magento上实现对手机或移动设备的支持呢,我这篇文章将详细介绍。
一、官方手机移动设备的支持
官方magento从1.5中,已经内置了手机和移动设备应用的支持,这个功能主要是根据官方定义好的结构,将指定的信息提交好,然后到magento上购买指定的服务,并获取Activation Key ,然后即可生成相应设备的移动应用,这个移动应用是一个专门的代码,如iphone,有生成一个ios app应用.这个应用可以提交给apple的app store,供用户免费下载。好像magento可以帮你提交给apple的app store.
价格费用如下:
Plans and Pricing
The $100 resubmission key is used to resubmit your app to Magneto.
Each resubmission key may be used only once.
平台 | 一次性费用 | 按年或月收费 | Select All |
---|---|---|---|
iPhone | $799 | $69 per month or $699 per year | |
iPad | $799 | $69 per month or $699 per year | |
Android | $799 | $69 per month or $699 per year |
1.5以下的版本,可在http://www.magentocommerce.com/magento-connect/Magento+Core/extension/4457/magento_mobile 下载
注意,这个功能生成的是应用程序
二、支持用手机或移动设备的magento模板
如果想以手机或移动设备用浏览器的html方式浏览magento的网站,那就需要模板专门支持这些设备,我找了一些收费或免费的模板
http://www.magentocommerce.com/magento-connect/BelVG/extension/5992/android_mobile_theme
http://www.magentocommerce.com/magento-connect/chinesedream/extension/5640/touchscreen_optimized_mobile_theme
http://www.magestore.com/iphone-theme.html
http://www.magentocommerce.com/magento-connect/SNM-Portal/extension/4368/mobiletouch
http://themeforest.net/item/iphone-shop-magento-theme/153684
http://ecommerce.aheadworks.com/magento-extensions/iphone-theme.html
上述只是我看到的一部分,一些是免费一些是收费,如果你有能力,可以根据免费模板进行二次修改
三、如何根据平台自动切换到模板?
有了移动的模板,那magento如何在手机和移动设备浏览时自动切换到指定模板上呢,有官方支持和第三次代码支持。
1、官方支持模板自动切换
到 System > Configuration > General > Design -> Package and Theme 的"Add Exception" 中
在“Matched Expression”:填写如下移动设备的标志,也可根据平台分开写
iPhone|iPod|BlackBerry|Palm|Googlebot-Mobile|Mobile|mobile|mobi|Windows Mobile|Safari Mobile|Android|Opera Mini
在“Value"处,填上指定移动设备所对应的模板,如iphone.
这就是magento官方支持的功能,很强大吧
2、第三方根据平台切换模板的功能
我找到两个,一个是收费的,一个是免费的
http://www.magestore.com/theme-switcher.html 这个是免费的
我提供这个插件的下链接:主题切换theme switcher
http://www.itoris.com/magento-mobile-theme-switcher.html#Features 这个是收费的Mobile Theme Switcher (v1.0.0) for Magento
总结:magento的手机或移动设备的支持还是不错的!