Mobile app
  • Home
  • Woocommerce Mobile App
    • Bookstore
      • Introduction
      • Environment Setup
      • Platform setup
      • Set up an editor
      • Run the App
      • Website Integration
      • UI Customize
      • Firebase configuration
        • Android Configuration
        • iOS Configuration
      • Dynamic UI changes
      • Basic Features
      • Release
        • Publish to google play
        • Publish to App store
      • UI Screens
  • J2store Mobile App
    • Outfit
      • Introduction
      • Environment Setup
      • Install the Ionic CLI
      • Firebase Configuration
        • iOS Configuration
        • Android Configuration
      • Ionic platforms
      • Push Notifications
      • UI Customization
      • Basic Features
      • Releases
        • Publish to Google Play
        • Publish to Apple Store
Powered by GitBook
On this page
  • Plugin Integration
  • App Integration
  1. Woocommerce Mobile App
  2. Bookstore

Website Integration

PreviousRun the AppNextUI Customize

Last updated 2 years ago

This guide is used for the fresh Wodpress Installing, please follow these 5 easy steps and you are good to go (If you are using an existing site, please make sure to back up the database before running the import):

  1. Install and activate the plugin.

  2. Generate the WooCommerce REST API key and save them to your private file for later usage.

  3. Woocommerce -> settings -> Advanced ->REST API -> Add key

Plugin Integration

  • You need to install the 2 plugins on your Wordpress website

Enable HTTP Authorization Header

  • Most shared hosts have disabled the HTTP Authorization Header by default.

  • To enable this option you’ll need to edit your .htaccess file by adding the following:

RewriteEngine on
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]

WPENGINE

SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

Configure the Secret key

The JWT needs a secret key to sign the token. This secret key must be unique and never be revealed.

To add the secret key, edit your wp-config.php file and add a new constant called JWT_AUTH_SECRET_KEY.

define('JWT_AUTH_SECRET_KEY', 'your-top-secret-key');

App Integration

Now we are going to connect your book store app to your website

Download " and variable ", then upload and active this plugin on your website

To enable this option you’ll need to edit your .htaccess file by adding the following (see ):

You can use a string from

Open .env file Change the URL to your website domain(e.g: ). Then replace the consumer key and consumer secret you created in the previous section (Website Integration).

JWT
this issue
here
https://demo.com
WooCommerce