Themes Coder Ionic WooCommerceDocs
Getting started

Introduction

This guide covers Ionic WooCommerce from start to finish: what's in the package, how to install it, every setting.

Press / anywhere to search these docs, or use View all on one page in the sidebar to print or save the whole guide as a PDF.

About#

Namal eCommerce Solution is a finished eCommerce Platform to effectively begin your online eCommerce business that have single or multi location physical stores. It has incredible features like robust Website, Mobile Application, Delivery Application, Point Of Sale, Quotation, Purchase, Sale, Returns, Ware House, Inventory Management, Accounts, Reports, User/Roles & Permissions, Business Settings, Website Settings, Mobile Application Settings, Delivery App Settings, Language, Currency, Multiple Payment Gateways for different countries and many more features for managing complete eCommerce business.

Namal Ecommerce is amazingly advanced for giving clients the best buying experience.

Namal helps you to create a phenomenal shopping experience website and mobile app for your valued customers. This provides you with enormous amounts of ready-to-use e-commerce web templates that you can easily utilize in your web business. It contains all those modern-day trendy features that allow you to design a web and app that truly represents your vision.

Our high-level, altered, and refreshed Namal Ecommerce is a widespread eCommerce store and an extensive undeniable site conveying scores of topics and the most exceptional administrator board.

This frees the designers from days and now and then months-long weariness of coding who need to make exceptionally responsive business site and mobile app on request with a lot of accessible choices.

Buy a domain, hosting and you are essentially all set live with this force pack. Aside from the source code, all fundamental utilities are additionally included in the pack. Its contributions incorporate

  • Generally progressed and easy to use dashboard.
  • A strong and thorough frontend website and mobile app Builder.
  • 10 header and 10 footer styles, 04 Slider Styles and 20 Banner Layouts for your website home page.
  • 06 Shop Page Layouts
  • 06 Product Page Layouts
  • Multi-Language (RTL Supported).
  • OneSignal Push Notification. .
  • POS management
  • Quotation Management
  • Sale and Purchase Management
  • Returns Management
  • Customers Management
  • Biller Management
  • Purchase Management
  • Roles/Permission Management
  • 09 Premade Homepage Layouts For Mobile App
  • 20 Product Card Styles For Mobile App
  • Easy To Customize With Sass
  • Firebase
  • Google Map
  • News Blog Pages.
  • Constructed utilizing CSS SASS.
  • Bootstrap 4Payment Gateways.

Cash on Delivery (COD), Bank Transfer(BT), PayPal, Stripe, BrainTree, Authorized.Net, Mollie, OpenPay, SagePay, RazorPay, PayTM …

Shipping Methods.

Flat-rate Shipping, Free Shipping, Shipping by Weight, Local Pick up.

Social Login Options

Facebook, Google.

Essentials#

Following are essentials you must have before installation

  • PHP Laravel Framework supported web hosting. It can be shared or VPS.
  • Facebook developer account to setup Facebook Login
  • Google developer account to setup Google Login
  • Firebase Account Setup
  • OneSignal account setup for push notifications.
  • Playstore Developer Account for Android App
  • Appstore Developer Account for Apple iOS App

Objectives#

Following are the objectives of Ionic WooCommerce:

  1.  This ensures high sales, and in time delivery of the products.
    
  2.  This reduces the time of transaction and payment.
    
  3.  It allows visitors across certain boundaries to see and order the products.
    
  4.  The ease of ordering and payment enhances the conversion rate.
    
  5.  Extended options and ease throughout the transaction render more confidence and satisfaction to the customer.
    

What’s included in the pack?#

The download pack consists of complete source code. Inside the folder, there are following zip files.

  • Website/CMS Source Code
  • Customer Application Source Code
  • Delivery Application Source Code

Pre Requisites#

Before you use the app and start the installation process on your machine, this is important points to know in detail.

  1.  **Tools**.
    

For ionic mobile app development, you need ionic development environment ready. Please follow below official links to setup your development machine.

https://ionicframework.com/getting-started

https://ionicframework.com/docs/installation/cli

2)Application build and test dependencies.

Below given are the essential dependencies that are needed to build the application and also for testing purpose i.e

  1. WordPress 4.4+
  2. WooCommerce 2.6+.
  3. Latest Node version
  4. Latest Ionic CLI Version 5+
  5. Latest Cordova CLI Version
  6. Ionic Framework Version: 4+
  7. Android Studio with SDK Manager.
  8. XCode 10

3) Essentials

  1. You must have wordpress site setup with woocommerce plugin.
  2. You must have a Facebook account to setup facebook login
  3. You must create firebase account setup
  4. You must have OneSignal account setup for push notifications.

Pre Requisites for Website Installation#

Website(PHP Laravel) - Pre Requisites for Installation#

The Laravel structure has a couple of framework prerequisites. These prerequisites are fulfilled by the Laravel Homestead virtual machine, so it's strongly suggested that you use Homestead as your local Laravel environment.

Nonetheless, in case you are not utilizing Homestead, you should ensure your server meets the accompanying necessities:

  • PHP >= 7.4
  • BCMath PHP Extension
  • CType PHP Extension
  • JSON PHP Extension
  • Mbstring PHP Extension
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension
  • Allow URL F-Open
  • PHP EXIF PHP Extension

Please follow official link for more details.

Getting started

Installation

This chapter covers Ionic Source Code Setup, Plugin Installation, Facebook Login, Facebook Integration, One Signal Notification, OneSignal Integration and AdMob Integration.

Ionic Source Code Setup#

Ionic Source Code Setup

For install ionic environment use this link

https://ionicframework.com/docs/intro/cli

Now we have set up the ionic environment. We need to connect our app with woocommerce website. Open the folder name (App Source Code) inside the downloaded packages.

Inside the folder, you will find all the ionic application code.

Now open project folder/src/providers/config.service.ts file and change the following.

It will load woocommerce products data into your application

Test Application

Now you can test the application in your ionic development environment.

Plugin Installation#

We have added JSON API and ionic eCommerce plugins. These plugins can be installed in two ways.

You will find the JSON API and ionic eCommerce plugins in a zipped folder in the pack.

1stMethod

  1. Upload the folder “JSON-API” to your WordPress Plugin folder (/wp-content/plugins)
  2. Now activate the plugin through the “plugins” menu in WordPress or by using the link provided by the plugin installer.
  3. Activate the controller through the JSON API menu found in the WordPress Admin Center (Settings->JSON API)

2ndMethod

Go straight to the admin panel>Plugin>Add New.

The above-given page will show up. From here, click on the “upload plugin” option, make sure that the plugin that you have is in .zip format. Click on the “Browse” option, upload the plugin folder and once the folder is chosen, click on the “Install Now” option”.

Once the plugin is installed, you can activate or deactivate the plugin through settings according to your usage.

After WordPress plugins installation and setup, please follow the below-mentioned instructions to set up your mobile application.

After Intallation of plugin need to activate the controllers from Settings >> Json APi

Ionic Woocommerce app works with woocommerce rest api, please follow the link below to enable woocommerce rest api on your server.

https://docs.woocommerce.com/document/woocommerce-rest-api/

After enable rest api, please make sure your site woocommerce rest api working correctly. You can follow that simple tutorial link to check whether rest api works correctly on your sever or not.

https://github.com/woocommerce/woocommerce/wiki/Getting-started-with-the-REST-API

Now you have all set at your wordpress site end. Please proceed with ionic source code setup.

Enable REST API & Generate API keys

To enable the REST API with in WooCommerce, go to WooCommerce> Settings> Advanced and tick the Enable Legacy API link .

The WooCommerce REST API works on a key system to control access. These keys are linked to WordPress users on your website.

To create or manage keys for specific WordPress user:

Go to: WooCommerce> Settings> Advanced> REST API

  1. Select Add Key
  2. Select the user you would like to generate a key for, in the user file and add a description. 3)Choose the desired level of access for this API key , which can be Read access, Write access or Read/Write access. 4)Select the Generate APIkey button and WooCommwrce will generate API keys for that certain user.

Once the keys have been generated, you will see two new keys, a QRCode and a Revoke API Key button. These two keys are your Consumer Key and Consumer Secret.

  1. Place your site link, consumer key and consumer secret in the mobile application config file that uses the WooCommerce API.

Facebook Login#

This allows you to log in through your Facebook credentials. Here is the official link with the detailed demonstration of Facebook integration https://ionicframework.com/docs/native/facebook/.

Facebook Integration#

Note:

Add plugin using below code using your app id and app name

Important:

ionic cordova plugin add cordova-plugin-facebook4 –variable APP_ID=“yourAppId” –variable APP_NAME=“yourAppName”

You have to enable it From CMS. For more details please visit https://ionicframework.com/docs/native/facebook/

One Signal Notification#

To avail of this feature, you need to create OneSignal account and obtain both needed keys that are App ID and App key. Place them here and make this feature functional. You can offer various discount coupons to your distinguished customers that would appear in their app like this

Here is the official link that would guide you throughout the process of OneSignal account creation https://ionicframework.com/docs/native/onesignal

OneSignal Integration#

Android#

Generate a Google Server API Key#

Your Google Server API Key and Google Project Number are used to send push notifications to ANDROID devices.

To begin, we'll obtain a Google Server API Key and Google Project Number. These keys allow OneSignal to use Google's web push services for your notifications.

Create A Firebase Project#

  1. Visit the Firebase Console and sign in with your Google account.

Press "CREATE NEW PROJECT" or select an existing one below

Enter a project name and press "CREATE PROJECT".

Firebase Cloud Messaging Token and Sender Id#

Getting your Firebase Cloud Messaging token and Sender ID

  1. Click the Gear icon in the top left and select "Project settings".
  2. Select the "CLOUD MESSAGING" tab.
  3. Save the two values listed:
    • You'll need your Server key, also known as the Google Server API key.
    • You'll need your Sender ID, also known as the Google Project Number, later as well

OneSignal App Android Setting#

Configure your OneSignal app's Android platform settings

  1. Go to Settings and press the Configure button to the right of Google Android.

Paste your Google Server API Key and Google Project Number in here and press Save.

After saving this server API Key and Sender ID from the firebase project, you can get the one signal app Id from the settings

and your sender id from the firebase project

place this app id and sender id in config.ts (src/providers/configProviders/config.ts) file then save it.

IOS#

Generate an IOS Push Certificate#

Required for all IOS apps.

Required For Setup#

Provisioning#

Option A: Create Certificate Request Manually#

We recently released a tool to automate this process!

Make sure your role for the team is Admin inside your Apple Developer account > Membership section. Otherwise you will not be able to use this tool.

Simply follow the directions on OneSignal's Provisionator Tool then continue to Step 4.

OR#

Option B: Create Certificate Request Manually#

  1. Open Keychain Access on your Mac OS X system. It may be located in "Applications" > "Utilities" > "KeychainAccess"
  2. Select "KeychainAccess" > "CertificateAssistant" > "RequestaCertificateFroma CertificateAuthority...".

Select the "Save to disk" option and enter your information in the required fields. This creates a certification request file that will be used

Enable Push Notification#

To enable Push Notifications and apply the Certification Request to generate Certificate.

  1. Select your app from the Apple's Developer site and press "Edit".

Scroll down to the bottom and enable Push Notifications. Press Done, but do not configure either Production or Development certificate.

Instead, go to Add iOS Certificate and select "Apple Push Notification service SSL (Sandbox & Production)" and click Continue.

This certificate will be applicable to both Sandbox and Production environments, so you do not need a separate key for each.

  1. Choose an App ID from the App ID pop-up menu.
  2. Press "Continue".
  3. Press "Choose File...” select the "certSigningRequest" file you saved in step 1, press "open", and then press "Generate"..

Press "Download" to save your certificate.

Creating A Private Key#

  1. Open the .cer file you downloaded in the last step by double clicking on it in Finder.

After a few seconds the "KeychainAccess" program should pop up. Select Login > My Certificates, then right click on your key in the list and select "Export".

  1. Give the file a unique name using the .p12 extension, and press save. You will have an option to protect the file with a password. If you add a password, you need to enter this same password on OneSignal.

Upload Your Push#

Upload Your Push Certificate to OneSignal.

If you haven't already, you should set up your OneSignal account.

  1. Select your app from the All Apps page in OneSignal, then go to "App Settings" and press "Configure" to the right of the Apple iOS Settings.

Select the .p12 you exported along with a password that you added, and press Save.

AdMob Integration#

Find your app IDs & ad unit IDs#

An app ID is a unique ID number assigned to your apps when they're added to AdMob. The app ID is used to identify your apps.

An ad unit ID is a unique ID number assigned to each of your ad units when they're created in AdMob. The ad unit ID is added to your app's code and used to identify ad requests from the ad unit.

Note:

During the final step of ad unit creation, you'll need to copy and paste the app ID and any ad unit ID(s) into your app's code. For more information on implementation, review the Google Developers Get Started guide (Android, iOS) for the appropriate ad format(s): banner, interstitial, rewarded video, native.

Find an app ID#

  1. Sign in to your AdMob account at https://apps.admob.com.
  2. Click Apps in the sidebar.
  3. Click View all apps.
  4. Click the Copy icon in the App ID column to copy the ID of an app.

Find an ad unit ID#

  1. Sign in to your AdMob account at https://apps.admob.com.
  2. Click Apps in the sidebar.
  3. Click the name of the app associated with the ad unit. Note: If you don't see it in the list of recent apps, click All apps. Then, click the name of the app.
  4. Click Ad units in the sidebar.
  5. Click the Copy icon in the Ad unit ID column to copy the ID of an ad unit.

Now update the src/providers/configProvider/config.ts file . Add your ios and android ids below and then also change the value of admob =1 for android ads and admobIos = 1 to enable the ios ads.#

Settings

App Feature Settings

This chapter covers General Settings, Checkout Settings, Contact Page Settings, Sidebar Menu Links and App Content Pages.

General Settings#

If you want to show the “cancel order” button, select show. While you can also hide it by applying the “hide” option.

From here you can set a certain time duration, prior to which the buyer can cancel the order. For instance, the 8 Hours option implies that order could be cancelled at least 8 hours prior to the agreed delivery time.

This allows you to choose any of Home Screen Style from 8 available styles.

This allows you to choose any Category Screen Style from 5 available styles.

This option allows you to display or hide the “Cart”.

Here you need to place the URL of your business website.

Here you ought to place a specific currency symbol that you deal in.

This option allows you to tag your new arrivals as “New Product” for as many days as you select this option.

This option allows you to place a filter of maximum price so that the products falling within this certain range show on your site page.

Checkout Settings#

a) Checkout Type

In checkout types, there are three further options available.

  1. Default: by selecting this option, you allow the web view of checkout. This checkout option appears in your app.
  2. Virtual: This checkout option is meant for those businesses that deal in virtual or intangible products that cannot be shipped physically, rather just downloaded. For instance, digital products, Pdf files, books, etc. In this checkout style, only the billing detail page appears and not the shipping detail page.
  3. Screen in App: in this checkout type, a separate order page is created right within the app where billing and shipping details are entered and stored.

b) Guest Checkout.

By enabling this option, you allow a random visitor to place the order without properly registering.

c) Custom CSS for Checkout Page.

This custom CSS allows you to change/modify your checkout page options right in the manner you like.

Contact Page Settings#

This entire page is designed in order to facilitate the client in contacting you. You are supposed to fill in each column on this page appropriately and accurately. This contact form is a bridge between you and the client.

Wishlist.

Wishlist is meant for the visitor where he/she can add products that he/she is likely to buy in the future. You can display or hide the wishlist.

Edit Profile.

This is again meant for the visitor to edit his/her profile information that was used in registration. Through this, you can allow or restrict the visitor from editing the profile.

My orders

Through this page, the visitor can see his/her order details and history. You can show or hide this option.

Contact us.

This is the page that carries the details of your contact information. You can show or hide this.

About Us.

This is the page that shows the “about us” content. You can show or hide this from this option.

Billing Shipping Info.

This segment is meant for the user where he/she can store billing and shipping information. You can show or hide it in the left menu.

Downloads.

This is again meant for the visitor whether he/she wants downloads or not. You can show or hide it in the left menu.

News.

This carries the latest news about your business. You can show or hide this from the left menu.

Introduction.

This segment contains your business’s introduction. You can show or hide it from here.

Share App.

Through this option, the visitor can share your app through different mediums with other users. You can show or hide this option from here.

RateApp.

Through this option, the visitor can rate your app. You can show or hide this option from here.

Settings.

Show or hide the settings from the left menu.

App Content Pages#

This feature allows you to display different information for the visitor I.e Your About Us page, Refund Policy, Privacy Policy, Terms, and Conditions content.

Settings

App Compatible plugins

This chapter covers WPML (Multi-Language), Multi Vendor, WC Points and Rewards, Multi Currency, Delivery Tracking and Geo Fencing.

WPML (Multi-Language)#

WPML implies the WordPress Multi-Language plugin. This is meant for this paid plugin that you can purchase and install to integrate with your app if you need multiple languages on your app. Once you have installed and activated the WPML plugin in the site backend, allow with “Yes” option here to make it functional. Link for this specific plugin is provided here https://wordpress.org/plugins/woocommerce-multilingual/.

This is the default view of the app after the addition of the WPML plugin. Check the language of your choice, for instance, if you select the Arabic language, all the content on the app would show the Arabic language by default as shown below when you essentially enter the data through the Arabic language.

Multi Vendor#

This is again a paid plugin that allows multiple vendors to sell their products on your website. Once you have purchased and installed this plugin on your WordPress website, select the “Yes” option from here to make it completely functional. The link for this particular plugin is given here https://www.wcvendors.com/.

Note: Points and Rewards plugin is not compatible with VC Vendor and dokan plugin.

Above given is the default view of the app after the installation of the Multi-Vendor plugin. Your multiple vendors would show up in this manner when you add them one by one through the backend.

above given is the default view of one of your listed vendors. Account for each vendor would show up in-app like this.

WC Points and Rewards#

This paid plugin is meant to offer different points and rewards to your customers that make considerable purchases. Select “Yes” after the complete installation and activation of the plugin on your WordPress website. The link for this particular plugin is given here https://woocommerce.com/products/woocommerce-points-and-rewards/?_ga=2.49807654.1224914166.1567084292-1405747643.1554209886.

Once you have installed the above-mentioned plugin, this would appear in your app menu bar like this

You can create a standard reward point mechanism according to your choice and policy through the plugin settings menu where you can assign certain points and rewards against a certain sum of money spent on shopping. The reward and points log of each user would appear like this

Multi Currency#

This plugin facilitates businesses that deal in multiple currencies. Configure all required settings of the plugin through the Ionic eCommerce plugin settings option and finally click on the “Yes” option here to make it completely functional. Here is the link for this multi-currency plugin that is compatible with this app https://wordpress.org/plugins/woocommerce-currency-switcher/.

Once you have installed the above mentioned multi-currency plugin, a specific $ sign will appear on the top right of the app’s menu bar like this.

From the menu given below, you can select your desired currency to be applied for all transactions.

Delivery Tracking#

This is meant for the “Aftership” plugin that allows the customer to track their order. After the installation and activation of this plugin, select “Yes” to make it functional. First, you have to make your account on the Aftership. This would issue a specific URL, place that specific URL here along with the yes option. Here we have placed the link for this plugin which is compatible with our app https://wordpress.org/plugins/aftership-woocommerce-tracking/.

Once a user places an order, he/she is assigned a specific tracking number through which the status of the product in transit can be found.

Geo Fencing#

This is one of the most advanced features of eCommerce websites and apps. With Geo-Fencing, you set a certain radius limit, whenever the user enters this radius limit, he/she is notified through a text message about the presence of your business store within that radius in a specific direction. First, install and activate this plugin in your WordPress website, make all the configurations of radius, latitude, and longitude through the plugin settings, and finally click on the “Yes” option here to make this feature fully operational.

Reference

Support

Stuck on a step, or found something that doesn't work as this guide says? We're happy to help.

Get help#

Before you write#

Please include these, so we can answer in one go:

  1. Your purchase code, or the email you bought with.
  2. Which part you're setting up: the admin panel or website, the customer app, or the delivery or vendor app.
  3. The step in this guide where it stopped working, what you expected and what happened instead.
  4. Screenshots of any error, and the console or build output if a build failed.

What item support covers#

As set by Envato's item support policy, support covers questions about how the item works, fixing bugs in it, and help with the third-party assets it includes. Installing it on your server for you, custom changes and new features aren't part of item support, but you're welcome to ask about them.