Posted on Leave a comment

APP Auth Setup

The authentication of the App to the multivendor website is done by JSON Web Token (JWT) method.

For using this authentication system to work on your WordPress multivendor website you need to install and activate JWT Authentication for WP REST API plugin in your website.

Setting Up and Configuring the JWT Authentication for WP REST API plugin:

  1. Enable HTTP Authorization Header: The plugin requires HTTP Authorization Header to be enabled in your server. If it is not enabled by default you can ask the hosting provider for the same.
    Most of the shared hosting disables the HTTP Authorization Header by default. To enable this option you’ll need to edit your .htaccess file adding the following
    RewriteEngine on
    RewriteCond %{HTTP:Authorization} ^(.*)
    RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]

    WPENGINE
    To enable this option you’ll need to edit your .htaccess file adding the following
    SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
  2. Configuring the Secret Key: The JWT needs a secret key to sign the token this secret key must be unique and never 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');
  3. To enable the Cross-origin Support, edit your wp-config.php file and add a new constant called JWT_AUTH_CORS_ENABLE
    define('JWT_AUTH_CORS_ENABLE', true);

*NOTE: The JWT_AUTH_SECRET_KEY and JWT_AUTH_CORS_ENABLE should be defined before ‘WP_DEBUG’ definition in the wp-config.php preferably just after the NONCE_SALT definition.

 

Posted on Leave a comment

APP Overview

It’s needless to say how apps are necessary for our business, and you will need an app solution to scale up your e-commerce business to next level.

WCFM Marketplace brings you series of apps for your vendors, customers and delivery personal to ensure smooth running of your marketplace just from your mobile!

So, here are the Apps we have:

1. WCFM Store Manager app – This primarily is a FREE app for your vendors, which will allow them to manage their business through this app.

2. WCFM Multivendor app- This is shop app for the customers and it supports the customer to purchase from the websites powered by WCFM.

3. WCFM Delivery app- It’s exclusively for delivery agents, allowing them to manage deliveries from their mobiles seamlessly.

In this documentation, we will discuss about the features provided by all these 3 apps in detailed manner. We do intend to add more features with time, till then Happy selling to you all!