2

Hi I have recently began to build mobile open cart sites for mobile browsers. I would like to take it a step further and build native apps using phonegap. My question is , does phonegap support a structure like opencart? Are php files supported?

Would it be possible for me to build a fully functioning opencart site and integrate it successfully with phonegap?

There is very little information online regarding this question.

Adrian
  • 1,976
  • 5
  • 41
  • 105
  • 1
    Have a look here: [can we use opencart or zen cart on the phonegap for an ipad app](http://stackoverflow.com/questions/9158493/can-we-use-opencart-or-zen-cart-on-the-phonegap-for-an-ipad-app) – Ferdi Duisters Apr 09 '13 at 08:21
  • The issue here is that OpenCart is PHP and MySQL driven. You can call Phonegap to load it via a GET request and load the responsive site that way like an iframe. – TheBlackBenzKid Apr 09 '13 at 12:27

2 Answers2

4

A Phonegap app cannot contain any server side scripting like PHP. It can only contains HTML, css and Javascript.

But you can always do request to a remote server that runs PHP.

wmfairuz
  • 1,033
  • 10
  • 19
1

Opencart has quite a few ajax interfaces in various parts of the app. These call controllers that deliver sections of a page usually. I have not looked into the full remote API to know if you can build a full shop app that uses the opencart backend.

If you look down that ajax calls path you may find enough functionality to produce the phonegap app.

greyman
  • 121
  • 4