Jump to content

How to develop a mobile application using prestashop


Jeniiifer

Recommended Posts

HI, am developping an Android mobile application ( m-commerce ). I have already installed WampServer and Prestashop on localhost. Then am blocked !!! I want to visualize the existing catalogs in my database on the simulator ( am using eclipse with android plug-in ). Please i need help soon !!! thx

Link to comment
Share on other sites

Thanks, but am using presta 3.7, and the boutique is already on line. I used http and json to connect to the DB through a php file. Now am wondering if it is possible to call the functions and méthods already developped on presta in my application. For example, when authenticaton, i need to know what type of encryption presta uses for passwords so that i can do it through my phone. Please I appreciate any help. Thanks

Link to comment
Share on other sites

Yes, you can use the functions within PS as long as you include these two includes:

include(dirname(__FILE__).'/config/config.inc.php');
include(dirname(__FILE__).'/init.php');



PS uses MD5 for it's password encryption. Here's how it's done in a utility I wrote to regenerate passwords:

include('../config/settings.inc.php');
$cookieKey = _COOKIE_KEY_;
$newPassword = $_POST['newPassword'];
$pwd = md5($cookieKey.$newPassword); // You can save to database the return value.
echo $pwd;



Say, if you upgrade to 1.4, you can override each class to output JSON any data you need and not be affected by upgrades.
That means you don't have to modify the original classes.

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
  • 2 months later...

Jeniiifer: How's it going with the iPhone app? I'm also planning to build an app for our jewelry shop so our customers and browse our jewelry etc. using the app.

Have you got your hands on a wdsl? How are you processing the xml from the prestashop web service? Have you written all of the xml processing code 'by hand'?

Thanks.

Link to comment
Share on other sites

  • 3 months later...
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...