Mstoreapp
  • WooCommerce App Docs
  • Getting Started
  • Theming your app
  • OneSignal Push Notification
  • Sending Push to Specific Category, Product and Post
  • Cross-sell and Upsell products
  • Dynamic Blocks
  • Multi Vendor and Vendor Type
  • Geolocation
  • Translation
  • Social Login (for ionic 3 app)
  • Account kit integartion (for ionic 4 app)
  • Social Login (for ionic 4 app)
  • Frequently asked questions (FAQ)
  • Customization
  • Try demo for your own site
Powered by GitBook
On this page
  • Getting started
  • Wordpress Plugin Installation
  • WooCommerce API
  • Now you can run your app.
  • If you have an issue read FAQ Or Feel free to contact me

Getting Started

PreviousWooCommerce App DocsNextTheming your app

Last updated 6 years ago

Getting started

Setup ionic environment - to know more about ionic environment setup see, ionic framework official document -

Unzip downloaded files

Change your details in app/config.xml. Change id, name, description, author, email, href

<?xml version='1.0' encoding='utf-8'?>
<widget id="com.ionic.starter" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>WooCommerce</name>
    <description>An awesome WooCommerce app.</description>
    <author email="support@mstoreapp.com" href="http://mstoreapp.com/">Mstoreapp Team</author>

CD app

$ cd app

Add android and ios platform to your project

$ ionic cordova platform add android
$ ionic cordova platform add ios

Wordpress Plugin Installation

To install plugin mstoreapp-mobile-app for WordPress follow these steps.

Install Redux Frameworks. If you have not installed yet -

  1. In Wordpress admin panel. Plugins > Add New > Upload plugin > Choose file Chose downloaded mstoreapp-mobile-app.zip file and Install and activate

OR

  1. Unzip downloaded mstoreapp-mobile-app.zip and Upload the mstoreapp-mobile-app folder to the wp-content/plugins/ directory.

  2. Activate the plugin through the Plugins menu in WordPress.

WooCommerce API

  1. It's required to turn on the WordPress permalink on Settings > Permalinks

  2. Visit WooCommerce > Settings > Advanced > REST API tab and tick the Enable REST API Checkbox

  3. Visit WooCommerce > Settings > Advanced > Legacy API tab and tick the Enable Legacy REST API Checkbox

  4. Go to API WooCommerce > Settings > Advanced > REST API > Keys/Apps > Add Key

Select the user in user field and add a description. Choose level of access Read/Write. then select the button Generate API Key and WooCommerce will generate API keys for that user.

Now you should see two new keys, These two keys are your Consumer Key and Consumer Secret

Add url, api keys in app/src/providers/service/config.ts file.

For ionic 4 apps in app/src/app/config.ts file

    url: any = 'URL_PLACEHOLDER';
    consumerKey: any = 'CONSUMER_KEY_PLACEHOLDER';
    consumerSecret: any = 'CONSUMER_SECRET_PLACEHOLDER';

Go to Wordpress > Mobile Options. Add Banners Blocks, Category Blocks, Product Blocks and Settings.

Now you can run your app.

$ ionic serve
$ ionic cordova build android
$ ionic cordova build ios

Debug apk may take time to load on some android devices. you need to build --prod to load faster

ionic cordova build android --prod
ionic cordova build ios --prod

If you have an issue read FAQ Or Feel free to contact me

IF YOU LIKE MY WORK DON’T FORGET TO RATE IT

THANK YOU!

Or send me a mail with details of the issue and your purchase code, URL, API, keys admin panel access

https://ionicframework.com/docs/intro/installation/
https://wordpress.org/plugins/redux-framework/
https://codecanyon.net/user/hakeemnala
hakeem.nala@gmail.com