Skip to main content

Configure Plugins

In this section we will configure some of the plugins that you have installed from the previous section.

info

Please make sure that you have Activated the plugins from the previous section before you start configuring them.


Configuration#

The plugins which require some additional configuration are mentioned below with the steps you need to follow to configure them.

Please follow the steps properly to complete the configuration of the plugins.

1. ACF to Rest Api#

  • Go to Settings --> Permalinks
  • Scroll down to the section named ACF to REST API
  • Make sure that the request version is set to v3
  • Click on Save Changes at the bottom to complete the modification.

ACF to Rest Api Plugin

Setup for the above plugin is complete

2. Pods - Custom Content Types and Fields#

You will need to create a custom post type here which is used to get the sections for the home screen. This allows to change the home screen layout dynamically.

  • Click on the left menu section Pods Admin

Pods Plugin

  • Click on Add New from the top left corner
  • Click on Create New

Pods Plugin

  • Make the following modifications
    • Content Type: Custom Post Type
    • Singular label: Section
    • Plural label: Sections
    • Click on Next

Pods Plugin

  • From the top tabs click on Rest Api

Pods Plugin

  • Tick the box in front of Enable and Show All Fields (read-only)

Pods Plugin

  • Finally click on Save Pod to save the changes.

Click on the Pods Admin from the side menu. After you have followed the set up properly, it will look something like this:

Pods Plugin

Setup for the above plugin is complete

3. Advanced Custom Fields#

  • Go to the advanced Custom Fields page from the option in the side menu.

ACF Plugin

  • Click on the Tools option from the tab at the top of the screen.

ACF Plugin

  • Under Import Field Group click on the Choose File button

ACF Plugin

  • Import the acf-fields.json file from the download package. You can find the file in the woocommerce-essentials folder. After that click on the Import File to import the preset of custom fields.

ACF Plugin

  • Change the tab to Field Groups from the tab bar at the top of the screen, you will be able to see an entry Section Additional Fields in the table. If you don’t please check if you encountered any errors. If yes, please correct them and perform the steps again.

ACF Plugin

  • You are now ready to create sections for your application’s home page.

Setup for the above plugin is complete

4. Post Types Order#

  • Go to Settings --> Post Types Order from the side menu.

Post Types Order Plugin

  • Scroll down to section named General.
  • Make sure the selected option is Show against the Section option.

Post Types Order Plugin

  • Click on Save Settings from the bottom.

Setup for the above plugin is complete

5. WooCommerce#

The first time you activate woocommerce, it starts a wizard to setup your store. Please complete the setup for your store according to your business requirements.

You can also set up the Advanced Shipment Tracking plugin with WooCommerce by reading its description to best suit your needs.

Now you need to create some Rest Api Keys which will be used in the application to connect to your WooCommerce Store on the website.

  • Go to WooCommerce --> Settings from the side menu.

WooCommerce Plugin

  • Click on Advanced Tab from the top tabbar.
  • Click on the REST API link which is located below the tabbar

WooCommerce Plugin

  • Click on Add Key to create a pair of keys.

  • Give a Description and select a User.

  • Make sure the permissions are set to READ.

    caution

    If the permissions are set to Read/Write and someone else got these keys, BAD THINGS CAN HAPPEN TO YOUR STORE.

    WooCommerce Plugin

  • Click on Generate Api Key. You will be able to see the keys for one and only time so keep in mind to save them somewhere as you will need to enter them in the mobile application.

Setup for the above plugin is complete

6. WooStore Pro Api#

After you have installed the plugin, you will need to activate it with the purchase code you got from codecanyon.

Please follow this link to get your purchase code: https://help.market.envato.com/hc/en-us/articles/202822600-Where-Is-My-Purchase-Code-

Once you have activated the plugin you can set up the required information for your application to work with.

1. Set up your JWT Authentication Secret Key.#

This is your secret JWT key which makes your application secure and protects your user’s data while transferring via network calls. You need to set up a cryptographically secure key in this field. You can copy one from here: https://api.wordpress.org/secret-key/1.1/salt/

After you’ve set the value, press the save button to save it in the database.

2. Setup your Firebase Server Api Key#

This key is used to send push notifications to your user when their order status changes. If you do not set this value correctly, push notification will not work.

You can get this key when you will set up your application with firebase in this section Setup Firebase - Cloud Messaging

3. Order status title and order status message#

This is the title and body of the push notification that will be sent to your customers when their order status is changed.