Introduction
This guide covers Namal WooCommerce from start to finish: what's in the package, how to install it, every setting and running the store day to day.
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 WooCommerce is an easy solution for pragmatic developers around the world. With just one single compilation you can create mobile apps for your WooCommerce website and publish the Apps on Play Store and App Store.
It accommodates massive number of very famous and essential plugins like
- WPML (WordPress Multi Language)
- WOOCS - WooCommerce Currency Switcher
- WC Market Place
- Dokan Multi-Vendor
- WooCommerce Product Vendors
- WCFM Marketplace
- One Signal
- Bravo - WooCommerce Points and Rewards
Namal WooCommerce apps come with all popular WooCommerce features like
- You can create an app for any type of store. Namal WooCommerce supports all types of products
- As far as the payment gateways is a major consideration, you can integrate all gateways that are compatible with WordPress WooCommerce due to the web view feature facility.
- When it comes to shipping gateways, it allows all the shipping methods.
- Social login option through Facebook following just a few simple steps.
- Geo fencing is another highly demanded and dominating feature that can be activated by just putting the latitude and longitude readings of the location.
- And Many More...
Objectives#
Following are the objectives of Namal WooCommerce:
- This ensures high sales, and in time delivery of the products.
- This reduces the time of transaction and payment.
- It allows visitors across certain boundaries to see and order the products.
- The ease of ordering and payment enhances the conversion rate.
- Extended options and ease throughout the transaction render more confidence and satisfaction to the customer.
Installation Android App
This chapter covers Android Setup, Plugin Installation, Facebook Login and One Signal Notification.
Android Setup#
Import App into Android Studio#
After Wordpress installation, please follow below given instructions to set up your mobile application..
4.1) - Getting Started
Download and install all latest tools, required for developing Android apps such as Java Development Kit and Android Studio as the Official Android IDE. For updated tutorial about how to install them, you can see and Download this from Android Developer website. Download JDK Download Android studio IDE
4.2) - Android Studio Setting
There are three main things interacting when you use Android Studio to create android applications.
· The code you write in Java or Kotlin to create interactive android apps · Android Studio itself, an IDE that provides you with a nice interface for coding · Android SDK, a selection of tools including the Android platform itself
Now you can click on Android Studio to launch it. Once it opens up, you’ll be presented with a menu where you’ll be able to get started or configure some options. The great thing is that everything is handled for you at this point, though you may want to familiarize yourself with the SDK Manager (Configure > SDK Manager) which is where you’ll update your Android SDK to support newer versions, as well as download things like code samples or support for Google Glass. But don’t worry about that now but if Android Studio says you’re missing something, this is where you’ll probably need to go to find it.
4.3) - Import Project in Android Studio
Locate your Android app in the given project zip folder
· Open Android Studio > Import Project (Eclipse ADT, Gradle, etc.)
· Browse to directory where you placed “AndroidWocommerce” project and click OK.
While importing your android app you may get some dependencies errors. to resolve that you just need to update versions of build tools.
After successful build you will get a screen like this.
Enable REST API & Generate API Keys#
To enable REST API within WooCommerce go to WooCommerce > Settings > API and tick the Enable REST API checkbox.

The WooCommerce REST API works on a key system to control access. These keus are linked to WordPress users on your website.
To create or manage keys for a specific WordPress user:
Go to: **WooCommerce > Settings > API > Keys/Apps.

Select Add Key.

Select the User you would like to generate a key for in the User field and add a Description
Choose the level of access for this API key, which can be Read access, Write access or Read/Write access.
Select the Generate API Key button, and WooCommerce will generate API keys for that user.

Now that keys have been generated, you should see now keys, QRCode, and a Revoke API Key button. These two keys are your Consumer Key and Consumer Secret.

Place your site link, consumer key and consumer secret in the mobile application app > java > yourpackagename > constant > ConstantValues.java
Change Server URL in Application#
Select app > java > yourpackagename > constant > ConstantValues.java
I don't want to use AdMob.
If you not want to use AdMob Just delete a number of lines from your code. Just follow the steps. Step one:Open strings.xml file and remove this line.
“<!--AddMod AppID--><string name="addmob_AppID" translatable="false">Your_AdMob id </string>”
Step two: Goto your manifest file and find this line and remove it.
“<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="@string/addmob_AppID"/> ” Step three:Open ConstantValues.java file and find these lines and then hold ctrl button on your keyboard and check where using these strings.
“public static boolean IS_ADMOBE_ENABLED; public static String ADMOBE_ID; public static String AD_UNIT_ID_BANNER; public static String AD_UNIT_ID_INTERSTITIAL;”
Step Four: IS_ADMOBE_ENABLED uses in fourteen classes just go and remove the code where uses. Name of classes:
- About.java
- Category_2.java
- Category_3.java
- HomePage_5.java
- Language.java
- My_Orders.java
- News.java
- SearchFragment.java
- SettingFragment.java
- Shiping_Methods.java
- SignUp.java
- SplashScreen.java
- SplashScreen.java
- Thank_you.java
Go one by one all the classes and remove the code. For example when you click About .java class this will take you go this code and just remove them
Step Five: ADMOB_ID uses in three classes just go and remove the code where uses.
Name of classes: ⦁ MainActivity.java ⦁ Signup.java ⦁ SplashScreen.java
Step Six: Delete the uses of AD_UNIT_ID_BANNER from your code. AD_UNIT_ID_BANNER this is use in these classes and also shows in screen shots.
⦁ Language.java ⦁ My_Orders.java ⦁ News.java ⦁ SearchFragment.java ⦁ Signup.java ⦁ SplashScreen.java ⦁ Thank_You.java
Step Seven: Delete the uses of AD_UNIT_ID_INTERSTITIAL from your code. AD_UNIT_ID_INTERSTITIAL this is use in these classes and also shows in screen shots.
⦁ About.java ⦁ Categories_2.java ⦁ Categories_3.java ⦁ HomePage_5.java ⦁ Shiping_Methods.java ⦁ Splash_Screen.java
I hope after following these steps your App run perfectly. Thank You
Facebook Integration#
https://developers.facebook.com/quickstarts/?platform=android This link will take you to the Facebook Developer Console. After login with your Facebook account you will get a screen like this.
Enter your project name into the Edit Text Field and click Create New Facebook App ID. You will get a screen like this.
Skip that Import SDK Step and jump to Add SDK and copy that Facebook app ID and keep it safe.
In the Next step paste that application id and (application id)+.activities.SplashScreen and click Next.
In the next step you need to generate a key hash. keep in mind there are two methods for generating the developmental key hash and release key hash.
In order to generate the key hash first you need to download the OpenSSL tool. To download that for windows go to this link below.
https://code.google.com/archive/p/openssl-for-windows/downloads
Download OpenSSL tool compatible with your system and extract it to C:\OpenSSL. Next you need to find the path of debug.keystore file in the C drive. usually it is placed in the C:\Users\YOUR_NAME\.android folder. Now open the Command Prompt. and execute the following command.
For Debugging (use it for development purpose only.)Important: keytool -exportcert -alias androiddebugkey -keystore "C:\Users\YOUR_NAME\.android\debug.keystore" | "C:\OpenSSL\bin\openssl" sha1 -binary |"C:\OpenSSL\bin\openssl" base64 For Publishing use this command Important: keytool -exportcert -alias "aliasName" -keystore "keystoreFilePath" | openssl sha1 -binary | openssl base64 Note: remember to change the path to you debug.keystore file. and make it sure to use the OpenSSL folder name same as you created in the C drive. when you press enter this will get a password. If you do not create a new password, then default password will be android
This is your key hash save it to your file and use it in developer Facebook console. Now paste the application key to the android studio project file shown below. (res > values > strings.xml)
Admob Integration#
https://www.google.com/admob/landing/sign-up-003.html Go to the above link and sign in with your Google account.
Now go to the Apps -> ADD APP as shown in the picture above.
In the next step you will get the App Id. save it to your notepad. Then create a banner unit and Interstitial Unit and copy the add unity id for both, save it on your notepad.
Click below link to go to the Google admob documentation https://developers.google.com/admob/android/quick-start Or simply paste this code into the Application tag in manifest file. Replace YOUR_APP_ID with your unique ID in the android tag.
<manifest> <application> <!-- Sample AdMob App ID: ca-app-pub-3940256099942544~3347511713 --> <meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="YOUR_APP_ID"/> </application> </manifest>
Rename Package#
Lets Say you want to change the android app package name from com.saudi.something to the com.saudi.newapp. to do that follow the steps given below. ⦁ First open the Project Structure window in the android studio project by pressing CTR+ALT+SHIFT+S and under the app -> Flavour tab change the application id to the new application package name and hit OK
⦁ Next go to the AndroidMenifest.xml file and change the application package name to the new one.
⦁ Next go to the Firebase Project and delete the previous app and create a new one with new android package name
⦁ to add new app to the Firebase Project click on android icon.
⦁ Next enter new credentials into the required fields.
⦁ to get the new SHA-1 key execute a file shown in the image bellow by double click on it.
⦁ copy the SHA-1 key from here.
⦁ and paste it in the Firebase Project here. and hit Register App.
⦁ Next download the google-services.xml file from here.
⦁ next change the android studio project view to the project.
⦁ and move the downloaded google-services.xml file here in the app directory as shown in the image bellow.
⦁ hit Overwrite button.
⦁ Next also change the package name in the google projects, google cloud platform to the new one.
⦁ also in the developer.facebook.com under the settings -> basic settings - > change the application id and application secret to the new one
⦁ after changing it to new one hit save changes.
⦁ Next in the android studio project change the Compact Middle Package view from the little gear button as shown in the picture bellow
⦁ and right click on the folder you want to rename and click Refactor -> Rename and change it to the new one. and hit OK
se
⦁ Next Click on Do Refactor if prompt.
⦁ Next also change some files from the res -> layout folder .
1 - homepage_1.xml
2 - homepage_2.xml
3 - news.xml
⦁ Finally click the build and rebuild the project.
Plugin Installation#
We have added JSON API and android eCommerce plugins. These plugins can be installed in two ways.
You will find the JSON API and Android eCommerce plugins in a zipped folder in the pack.
1st Method
- Upload the folder “JSON-API” to your WordPress Plugin folder (/wp-content/plugins)
Now activate the plugin through the “plugins” menu in WordPress or by using the link provided by the plugin installer.
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.
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/.
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
Installation Flutter Apps
This chapter covers Pre Requisites, Plugin Installation, Flutter Environment Setup, Customer App Source Code Setup, Vendor App Source Code Setup (Coming Soon), Delivery App Source Code Setup (Coming Soon), Facebook Login, Facebook Integration, One Signal Integration and Application Build with Flutter.
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 Flutter mobile app development, you need Flutter development environment ready. Please follow below instructions to setup your development machine.
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
- WordPress 5+
- WooCommerce 3+
- Latest JDK kit
- Latest Android Studio with SDK Manager
- Latest Flutter SDK
- Flutter plugin for Android Studio
- Latest XCode Version
3) Essentials#
- You must have wordpress site setup with woocommerce plugin
- You must have a Facebook account to setup facebook login
- You must create firebase account setup
- You must have OneSignal account setup for push notifications
- You Must have Mac Machine for iPhone application development
Plugin Installation#
Install the plugin in your WordPress site.
Go to WP Admin > Plugin > Add New

Once the plugin is installed, you can activate or deactivate the app settings according to your choice :)
Flutter Environment Setup#
For setup Flutter Development Environment use this link below.
Now you have set up the flutter development environment. You need to connect our app with your WooCommerce website.
Customer App Source Code Setup#
To connect our app with your WooCommerce website. Open the customer app source code folder from the downloaded package.
Inside the folder, you will find all the customer application source code.
Now open project folder /lib/config.dart file and change the following.
- https://your-site.com (it will be the URL of your domain)
- Consumer Key
- Consumer Secret
It will load WooCommerce products data into your application.
String yourSiteUrlString = "https://your-site.com/"; String consumerKey = "ENTER_YOUR_CONSUMER_KEY"; String consumerSecret = "ENTER_YOUR_CONSUMER_SECRET_KEY";
You can create Consumer Key & Consumer Secret by following link below.
Test Application#
Now you can test the application in your Flutter development environment.
Vendor App Source Code Setup (Coming Soon)#
To connect our app with your WooCommerce website. Open the vendor app source code folder from the downloaded package.
Inside the folder, you will find all the vendor application source code.
Now open project folder /lib/config.dart file and change the following.
- https://your-site.com (it will be the URL of your domain)
- Consumer Key
- Consumer Secret
It will load WooCommerce products data into your application.
String yourSiteUrlString = "https://your-site.com/"; String consumerKey = "ENTER_YOUR_CONSUMER_KEY"; String consumerSecret = "ENTER_YOUR_CONSUMER_SECRET_KEY";
You can create Consumer Key & Consumer Secret by following link below.
Test Application#
Now you can test the application in your Flutter development environment.
Delivery App Source Code Setup (Coming Soon)#
To connect our app with your WooCommerce website. Open the delivery app source code folder from the downloaded package.
Inside the folder, you will find all the delivery application source code.
Now open project folder /lib/config.dart file and change the following.
- https://your-site.com (it will be the URL of your domain)
- Consumer Key
- Consumer Secret
It will load WooCommerce products data into your application.
String yourSiteUrlString = "https://your-site.com/"; String consumerKey = "ENTER_YOUR_CONSUMER_KEY"; String consumerSecret = "ENTER_YOUR_CONSUMER_SECRET_KEY";
You can create Consumer Key & Consumer Secret by following link below.
Test Application#
Now you can test the application in your Flutter development environment.
Facebook Login#

This allows you to appear facebook log in button in your mobile application. Here is the official link with the detailed demonstration of Facebook integration.
Facebook Integration#
You need to Flutter Facebook Login package in your project, below are some essential instructions from official link.
- Add
flutter_login_facebookas a dependency in your pubspec.yaml file; - Setup Android
- Setup iOS
- Additional Facebook app setup
- Use plugin in application
See Facebook Login documentation for full information. Also you can read the article on Medium with detailed instructions. For more details please visit below link.
One Signal Integration#
Open project folder/lib/constants/app_config.dart file and change the following.
- ONESIGNAL_APP_ID
It will enable Onesignal reception in your app.
static final ONESIGNAL_APP_ID = "Enter_YOUR_ONE_SIGNAL_APP_ID";
You can Create Onesignal AppID by following link below.
Application Build with Flutter#
For Android:#
You can Build Android apps by following instructions from official link.
For iOS:#
You can Build iOS apps by following instructions from official link.
Installation Ionic Apps
This chapter covers Ionic Environment Setup, Customer App Source Code Setup, Delivery App Source Code Setup, Vendor App Source Code Setup, Facebook Integration, Application Build with Capacitor, Pre Requisites, Facebook Login and One Signal Integration.
Ionic Environment Setup#
For setup Ionic Development Environment use this link below.
Now you have set up the ionic environment. You need to connect our app with your WooCommerce website.
Customer App Source Code Setup#
To connect our app with your WooCommerce website. Open the customer app source code folder from the downloaded package.
Inside the folder, you will find all the customer application source code.
Now open project folder \src\services\config\config.service.ts file and change the following.
- https://your-site.com (it will be the URL of your domain)
- Consumer Key
- Consumer Secret
It will load WooCommerce products data into your application
public url: string = '', // Your site URL public consumerKey: string = '', // Your consumer key public consumerSecret: string = '', // Your consumer secret
You can create Consumer Key & Consumer Secret by following link below.
Test Application#
Now you can test the application in your Ionic development environment.
Delivery App Source Code Setup#
To connect our app with your WooCommerce website. Open the delivery app source code folder from the downloaded package.
Inside the folder, you will find all the delivery application source code.
Now open project folder/src/providers/config.service.ts file and change the following.
- https://your-site.com (it will be the URL of your domain)
- Consumer Key
- Consumer Secret
It will load WooCommerce products data into your application
public url: string = '', // Your site URL public consumerKey: string = '', // Your consumer key public consumerSecret: string = '', // Your consumer secret
You can create Consumer Key & Consumer Secret by following link below.
Test Application#
Now you can test the application in your Ionic development environment.
Vendor App Source Code Setup#
To connect our app with your WooCommerce website. Open the vendor app source code folder from the downloaded package.
Inside the folder, you will find all the vendor application source code.
Now open project folder/src/providers/config.service.ts file and change the following.
- https://your-site.com (it will be the URL of your domain)
- Consumer Key
- Consumer Secret
It will load WooCommerce products data into your application
public url: string = '', // Your site URL public consumerKey: string = '', // Your consumer key public consumerSecret: string = '', // Your consumer secret
You can create Consumer Key & Consumer Secret by following link below.
Test Application#
Now you can test the application in your Ionic development environment.
Facebook Integration#
You need to Add Cordova plugin in your project using below code, you have to enter your App ID and App Name ionic cordova plugin add cordova-plugin-facebook4 –variable APP_ID=“yourAppId” –variable APP_NAME=“yourAppName” For more details please visit below link.
Application Build with Capacitor#
After all configuration and installation complete, you have to build your application with capacitor, you have to use following command for signed apk
First, you have build for web changes with this command
ionic build
Secondly, you have to copy it for android with this command
npx cap copy
Lastly, you have to open android studio for build your signed apk
npx open android
If you face still any problem in build, you can follow this official link.
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 instructions to setup your development machine.
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
- WordPress 5+
- WooCommerce 3+
- Latest Node version
- Latest Ionic CLI Version 6+
- Latest Cordova & Capacitor Version
- Ionic Framework Version: 5+
- Android Studio with SDK Manager
- Latest XCode Version
3) Essentials#
- You must have wordpress site setup with woocommerce plugin
- You must have a Facebook account to setup facebook login
- You must create firebase account setup
- You must have OneSignal account setup for push notifications
- You Must have Mac Machine for iPhone application development
Facebook Login#

This allows you to appear facebook log in button in your mobile application. Here is the official link with the detailed demonstration of Facebook integration.
One Signal Integration#
Open project folder/src/providers/config.service.ts file and change the following.
- onesignalAppIdString
- onesignalSenderIdString
It will enable Onesignal reception in your app
// Push Notification Settings public onesignalAppIdString: string = '', public onesignalSenderIdString: string = '',
Test Application#
You can Create Onesignal AppId and Onesignal SenderId by following below link.
Installation React Apps
This chapter covers Pre Requisites, React Native Environment Setup, Customer App Source Code Setup, Delivery App Source Code Setup, Vendor App Source Code Setup, Facebook Login, Facebook Integration, One Signal Integration, Application Build For Android & iOS and Deep Linking.
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 react native mobile app development, you need react native development environment ready. Please follow below instructions to setup your development machine.
2) Application build and test dependencies#
Below given are the essential dependencies that are needed to build the application
- WordPress 5+
- WooCommerce 3+
- Latest Node version
- React Native CLI Enviroment
- Android Studio with SDK Manager
- Latest XCode Version
3) Essentials#
- You must have wordpress site setup with woocommerce plugin
- You must have a Facebook account to setup facebook login
- You must create firebase account setup
- You must have OneSignal account setup for push notifications
- You Must have Mac Machine for iPhone application development
React Native Environment Setup#
React Native Environment Setup for all three apps (customer, vendor, delivery)#
For install React Native environment use this link below.
It will help you install and build your first Example React Native app. Use this plugin for Rename project, change Bundle Identifier and Packagename .
Installing Node Modules#
Open terminal and go to project folder and run following command
npm install
or you can use Yarn
Yarn add
iOS Setup (Mac OS Only)#
Follow above link React Native CLI Quickstart -> macOS -> iOS
we are using node v14.17.4
Running Simulator#
Run the following command if you have installed node modules from the previous command. You can setup CocoaPods by following command.
cd ios && pod install
After installation of all dependencies back to the previous folder
cd ..
Now run this command
npx react-native run-ios
Android Setup (Mac OS, Windows, Linux)#
You need to Change Android SDK Path Go to 1. File -> project Structure into Project Structure2. Left -> SDK Location SDK location select Android SDK location
Running Emulator#
To check the Android device is ready or not run following command from your terminal
adb devices
Please make sure you use the correct Android SDK path. You can find the actual location of the SDK in the Android Studio “Preferences” dialog, under Appearance & Behavior → System Settings → Android SDK. If you have the device listed you can run the following command.
npx react-native run-android
Now we have set up the React Native environment. We need to connect our app with WooCommerce website.
Customer App Source Code Setup#
To connect our app with your WooCommerce website. Open the customer app source code folder from the downloaded package. Inside the folder, you will find all the React Native customer application source code. Now open project src/common/Theme.style.js file and change the following.
- https://your-site.com (it will be the url of your domain)
- Consumer Key
- Consumer Secret
- Change the colors for your theme
- Change the text size of the application small, medium, large, custom radius,Font family
- webClientIdForGoogleSign (add this webclient id from firebase for google login)
Path: src/common/Theme.style.js
It will load WooCommerce products data into your application. You need to go into our Firebase console and enable Google authentication for your app.
Once you’re inside the app’s dashboard, you’re need to go into
Authentication → Sign-In Method → Google
and click the Enable toggle as show below.

Now save your web client Id and paste in config file in webClientIdForGoogleSign variable. For further details visit this URL
export default { url: '', // your site URL consumerKey: '', // Your consumer secret consumerSecret: '', // Your consumer secret
// please reset app cache after changing these five values
defaultCurrencySymbol: '$',
currencyCode: 'USD',
priceDecimals: 2,
// by default language for ltr
ltrlanguageCode: 'en',
// by default language for rtl
rtllanguageCode: 'ar',
yourVendorUserNameString: '',
yourVendorPasswordString: '',
oneSignalAppIdForAndroid: '',
webClientIdForGoogleSign: '',
/// //// navigation
newProductDuration: 20,
languageCode: 'EN',
homeTitle: 'Grocery App',
perPageNumber: 10,
// Banners props
autoplay: true,
autoplayDelay: 2,
autoplayLoop: true,
appInProduction: false,
/// //////// cartWidth
singleRowCardWidth: cardWidth,
twoRowCardWIdth: 0.465,
barStyle: 'light-content' // dark-content, default
}
export const appTextStyle = { smallSize: 11, mediumSize: 12, largeSize: 14, customRadius: 19, fontFamily: 'Montserrat-Regular', isDarkMode: false }
export const appLightTheme = { StatusBarColor: '#0478ed', barStyle: 'light-content', primary: '#0478ed', secondry: '#ffc854', primaryLight: '#f1f3f2', primaryBackgroundColor: '#ffffff', secondryBackgroundColor: '#ffffff', // backgroundcolor black textColor: '#444444', cardTextColor: '#000000', textTintColor: '#ffffff', iconPrimaryColor: '#9ba5a7', iconSecondryColor: '#000000' }
export const appDarkTheme = { StatusBarColor: '#0478ed', barStyle: 'light-content', primary: '#0478ed', primaryLight: '#f1f3f2', secondry: '#ffc854', cardTextColor: '#000000', primaryBackgroundColor: '#252525', // secondryBackgroundColor: '#252525', // backgroundcolor white textColor: '#ffffff', textTintColor: '#ffffff', iconPrimaryColor: '#9ba5a7', iconSecondryColor: '#ffffff' }
Change Splash Screen and App Icon#
For Android:#
Go into android/app/src/res/mipmap (dpi,mdpi,xhdpi,xxhdpi,xxxhdpi) and replace the splash screen image for your app splash screen and ic_launcher and ic_launcher_round(round shape icon) for icon (name and extension of all images should be same )
Path: android/app/src/res/mipmap

For iOS:#
Go into projectName/ios/projectName/Images.xcassets/splashscreen.imageset and change the splash screen and icon.
Path: projectName/ios/projectName/Images.xcassets/splashscreen.imageset

How to Set the App Icon#
Click in the Project Navigator and then choose AppIcon.


Intro Slider Images#
Replace those images for the intro slider (name and extension of all images should be the same).
Path: projectName/src/images/IntroImages

You can visit the following Path to change the Intro screens as per your requirements. You can change the image slide4.jpg.
Path:projectName/src/screens/IntroScreen.js
<imagebackground style="{{" width:="" width,="" flex:="" 1="" }}="" source="{require('../images/IntroImages/slide4.jpg')}" resizemode="{'cover'}"> </imagebackground>
RateUs Button Android/IOS#
For the Android – Rate Us button change the google package name in the for Andriod Packagename:For IOS – Rate us button change the Apple App ID in AppleAppId:
Path: projectName/src/screens/RateUs.js
const options = { AppleAppID: '', // your apple app id When you create an app in iTunes Connect, you get a number that is around 10 digits long. GooglePackageName: '', // example com.themescoder.com AmazonPackageName: '', // example com.themescoder.com OtherAndroidURL: 'http://www.randomappstore.com/app/47172391', preferredAndroidMarket: AndroidMarket.Google, preferInApp: false, openAppStoreIfInAppFails: true, fallbackPlatformURL: 'http://www.mywebsite.com/myapp.html' }
RTL Layout Setup#
For Android:#
Go into projectName/android/app/src/main/java/com/rnbecruxBoy/MainActivity.java folder and change forceRTL() to true.
Path: projectName/android/app/src/main/java/com/rnbecruxBoy/MainActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { SplashScreen.show(this, R.style.SplashTheme); // here super.onCreate(savedInstanceState); I18nUtil sharedI18nUtilInstance = I18nUtil.getInstance(); // sharedI18nUtilInstance.forceRTL(this, false); // true for RTL // sharedI18nUtilInstance.allowRTL(this, true); // uncomment it for allow RTL }
For iOS:#
Go into projectName/ios/projectName/AppDelegate.m folder and change forceRTL() to YES
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ // [[RCTI18nUtil sharedInstance] allowRTL:YES]; // uncomment for allow RTL // [[RCTI18nUtil sharedInstance] forceRTL:NO]; // uncomment for LTR // [[RCTI18nUtil sharedInstance] forceRTL:YES]; // uncomment for RTL
How to config App name#
For Android:#
Open file android/app/src/main/res/values/strings.xml and change to your App name
Path: android/app/src/main/res/values/strings.xml
<resources> <string name="app_name">React-Namal-Woo-Customer</string> <string name="facebook_app_id">1330370640657911</string> <string name="fb_login_protocol_scheme">1330370640657911</string> </resources>
Don’t forget clean cache after change app info.
cd ./android && ./gradlew clean
For iOS:#
You will have to change the display name for iOS

Delivery App Source Code Setup#
To connect our app with your WooCommerce website. Open the delivery app source code folder from the downloaded package. Inside the folder, you will find all the React Native delivery application source code. Now open project src/common/Theme.style.js file and change the following.
- https://your-site.com (it will be the url of your domain)
- Consumer Key
- Consumer Secret
Path: src/common/Theme.style.js
It will load WooCommerce products data into your application.
url: '', // your site URL consumerKey: '', // Your consumer secret consumerSecret: '', // Your consumer secret
Change Splash Screen and App Icon#
For Android:#
Go into android/app/src/res/mipmap (dpi,mdpi,xhdpi,xxhdpi,xxxhdpi) and replace the splash screen image for your app splash screen and ic_launcher and ic_launcher_round(round shape icon) for icon (name and extension of all images should be same )
Path: android/app/src/res/mipmap

For iOS:#
Go into projectName/ios/projectName/Images.xcassets/splashscreen.imageset and change the splash screen and icon.
Path: projectName/ios/projectName/Images.xcassets/splashscreen.imageset

How to Set the App Icon#
Click in the Project Navigator and then choose AppIcon.


Vendor App Source Code Setup#
To connect our app with your WooCommerce website. Open the vendor app source code folder from the downloaded package. Inside the folder, you will find all the React Native vendor application source code. Now open project src/common/Theme.style.js file and change the following.
- https://your-site.com (it will be the url of your domain)
- Consumer Key
- Consumer Secret
Path: src/common/Theme.style.js
It will load WooCommerce products data into your application.
url: '', // your site URL consumerKey: '', // Your consumer secret consumerSecret: '', // Your consumer secret
Change Splash Screen and App Icon#
For Android:#
Go into android/app/src/res/mipmap (dpi,mdpi,xhdpi,xxhdpi,xxxhdpi) and replace the splash screen image for your app splash screen and ic_launcher and ic_launcher_round(round shape icon) for icon (name and extension of all images should be same )
Path: android/app/src/res/mipmap

For iOS:#
Go into projectName/ios/projectName/Images.xcassets/splashscreen.imageset and change the splash screen and icon.
Path: projectName/ios/projectName/Images.xcassets/splashscreen.imageset

How to Set the App Icon#
Click in the Project Navigator and then choose AppIcon.


Facebook Login#

This allows you to log in through your Facebook credentials. Here is the link with the detailed demonstration of Facebook integration.
Facebook Integration#
Facebook Developer Console#
The first thing we need to do is to create a new application in Facebook’s developer dashboard, and this app is the one that Facebook will use to ask our users for their permission when we try to log them into our React Native application. For that, you’ll need to go to the Facebook developer console and create a new app.
Add your Platforms to Facebook#
For Android:#
Add Facebook App ID#
- Add your Facebook App ID to your app and update your Android manifest.
- Open your strings.xml file, for example:/app/src/main/res/values/strings.xml .
- Add a new string with the name facebook_app_id containing the value of your Facebook App ID:
<string name=”facebook_app_id”>….</string>
- Add your development and release key hashes
To ensure the authenticity of the interactions between your app and Facebook, if your app has already been published, you should add your release key hash too. You’ll have a unique development key hash for each Android development environment. To generate a development key hash, on Mac, run the following command:
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64
keytool -exportcert -alias androiddebugkey -keystore %HOMEPATH%.androiddebug.keystore | openssl sha1 -binary | openssl base64
This command will generate a 28-character key hash unique to your development environment. Copy and paste it into the field below. You will need to provide a development key hash for the development environment of each person who works on your app. If your app has already been published, you should also add a hash of your release key. Android apps must be digitally signed with a release key before you can upload them to the store. To generate a hash of your release key, run the following command on Mac or Windows substituting your release key alias and the path to your keystore:
keytool -exportcert -alias YOUR_RELEASE_KEY_ALIAS -keystore YOUR_RELEASE_KEY_PATH | openssl sha1 -binary | openssl base64
This will generate a 28-character string that you should copy and paste into the field below. Also, see the Android documentation for signing your apps.
For iOS:#
Configure your info.plist and project settings#
Find the .plist file in the Supporting Files folder in your Xcode Project.
- Right-click your .plist file and choose “Open As Source Code”.
- Copy & Paste the XML snippet into the body of your file.
<dict>…</dict>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>……</string>
</array>
</dict>
</array>
<key>FacebookAppID</key>
<string>……</string>
<key>FacebookDisplayName</key>
<string>rn</string>
One Signal Integration#
Push Notification#
- Create a OneSignal Account
- Your One Signal APP ID, Available in Keys & IDs
- Put your ONESIGNAL APP ID here with your OneSignal google project number in your android/app/build.gradle folder.
Android { defaultConfig { manifestPlaceholders = [ onesignal_app_id: ‘PUT YOUR ONESIGNAL APP ID HERE’, // Project number pulled from dashboard, local value is ignored. onesignal_google_project_number: ‘REMOTE’ ]}}

Generate Credentials#
Please follow below articles for generating credentials.
For Android:#
You can follow this link to Generate a Google Server API Key
For iOS:#
You can follow this link to Generate an iOS Push Certificate
Application Build For Android & iOS#
Publishing to Google Play Store#
Publishing to Apple Store#
Deep Linking#
For Android:#
First, we need to open our Manifest file and add the app name we will want to be referencing, in our case ProjectName In android/app/src/main, open AndroidManifest.xml and change the android:host=” ” according to your link and you can also change android:scheme=” ”.
<intent-filter android:label="Kundool"> <action android:name="android.intent.action.VIEW"> <category android:name="android.intent.category.DEFAULT"> <category android:name="android.intent.category.BROWSABLE"> <data android:scheme="https" android:host="kundol-api.themes-coder.com"> </data></category></category></action></intent-filter>
For iOS:#
- Step 1: Add URL type to info.plist from VScode. Replace your bundleid instead of kundol-api.themes-coder.com
- Step 2. Add URL type to info.plist from Xcode
<dict> <key>CFBundleURLSchemes</key> <array> <string>kundol-api.kundol-api</string> <string>fb1401655059993888</string> </array> </dict>
- Open plistand at the top of the file, create a new property called URL types
- Expand item 0(zero) and choose URL Schemes.
- Give item 0 or 1 the name you would like your app to be linkable as. In our case, I choose kundol-api.themes-coder.com as the name.

Reference:#
App Feature Settings
This chapter covers General Settings, Checkout Settings, Contact Page Settings, App Pages 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.
- Default: by selecting this option, you allow the web view of checkout. This checkout option appears in your app.
- 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.
- 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.
App Pages Links#


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.
App Compatible plugins
This chapter covers WPML (Multi-Language), Multi Vendor, WC Points and Rewards, Multi Currency and Delivery Tracking.
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

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
See wcvendors.com
Note: Points and Rewards plugin is not compatible with VC Vendor and dokan plugin.

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
Once you have installed the above-mentioned plugin, this would appear in your app settings

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 above
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
Once you have installed the above mentioned multi-currency plugin, you can then able to change the language from

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
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.

Support
Stuck on a step, or found something that doesn't work as this guide says? We're happy to help.
Get help#
- Help Center. Start at the Themes Coder Help Center for the guides of every product and how to reach us.
- CodeCanyon item support. Buyers can also ask from the Namal WooCommerce item page on CodeCanyon.
Before you write#
Please include these, so we can answer in one go:
- Your purchase code, or the email you bought with.
- Which part you're setting up: the admin panel or website, the customer app, or the delivery or vendor app.
- The step in this guide where it stopped working, what you expected and what happened instead.
- 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.