我们可以在phonegap上为ipad应用程序使用opencart或zen cart [英] can we use opencart or zen cart on the phonegap for an ipad app
问题描述
我们可以在phonegap上为ipad应用程序使用opencart或zencart吗?
我想使用phonegap框架做一个本机ipad应用程序,我们可以在phonegap中使用php吗?
Can we use opencart or zencart on the phonegap for an ipad app?
I want to do a native ipad app using the phonegap framework, can we use php in phonegap? How can i implement open cart template in phonegap,can any one give me some useful tutorial links.
推荐答案
Ravi,
使用任何大型框架用于小目的不是一个好主意,
Use of any large framework for small purpose is not a good idea,
就您的要求而言,可通过简单的XML Feed生成满足您的需求
As far as your requirement is concern, you can fulfill your need by simple XML feed generation
步骤1:
了解任何开源的数据库结构。即在Zen Cart中,您可以从zen_categories和zen_categories_description表中获取所有类别信息。
Understand Database structure of any Open source. i.e. in Zen Cart you can get all category information from zen_categories and zen_categories_description table.
步骤2:
从DB生成XML Feed,即创建一个动态生成XML Feed的脚本。
Generate XML feed from DB i.e. create a script which is dynamically generate XML Feed.
<?xml version="1.0" encoding="utf-8"?>
<list>
<item>
<id>1</id>
<name>Cat 1</name>
<image>http://domain.com/images/cat1.jpg</image>
<description>description goes here</description>
</item>
<item>
<id>2</id>
<name>Cat 2</name>
<image>http://domain.com/images/cat2.jpg</image>
<description>description goes here</description>
</item>
</list>
步骤3:
从原生应用和显示类别列表中读取XML Feed。
Read XML feed from your native app and display category list.
现在,对于产品数据,创建使用参数(类别ID)的另一个XML Feed
Now for product data create another XML feed which is use parameter ( category ID)
希望,这可能会有帮助。
Hope, this may help.
这篇关于我们可以在phonegap上为ipad应用程序使用opencart或zen cart的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!