App Customization
App Customization
Now that you have successfully installed all dependencies of the app, it's time to customize and modify it using any code editor to meet your branding requirements.
To customize the app, open the common folder:
hubayWoo -> src -> app -> common
1. How to change colors ?
In the Colors.js
you can define your app colors. AppColor
is the main color of the app and other colors are used within different components in the app. You can change the color using rgba
color or Hexa codes as follows:
For example: to change the AppColor
, simply change numbers between ( )
with your desired rgba
color code : (60,160,220,1)
2. What to change in the configuration file ?
In the Config.js
you can define endpoint
, consumer_key
, consumer_secret
, romotion slider, and main brands:
endpoint: defines your Magento2 website URL,
consumer_key and consumer_secret: will enable to integrate your site with hubayWoo mobile app,
Promotion slider: shows home page sliders and required URLs,
Brands: shows list of brands and their URLs.
How to change the endpoint ?
Add your website URL in endpoint
and also the consumer_key
and consumer_secret
that can be generated from your WooCommerce admin dashboard.
You can generate keys from admin dashboard of your WooCommerce website. To do so follow these steps:
Login to your WooCommerce admin dashboard.
Go to Dashboard -> WooCommerce -> Settings -> Advanced -> REST API
Click "Add key" and make permissions Read and Write.
Then the site will generate all api details that can be used in HubayWoo app integration.
How to change/add promotion sliders:
Add your banner image url
and categoryID
for your slider as follows.
To remove promotion sliders, simply remove the object including { }
.
How to change/add brands:
Add url
and image
for your Brands as follows.
To remove brands , simply remove the object including { }
.
3. Icons:
All icons used in the app are defined in the Icons.js
file. Please ensure replacing icons with same names given below:
For example if you want to change the Drawer icon, then you can replace the icon from assets -> icons
folder. However, the replaced file should be ic_drawer.png
4. Languages:
You can add a new language via Languages.js
file. The app support RTL and Arabic Languages. Simply add a new language by adding it as the following structure:
Ensure defining the languages correctly between single quotation mark. For example :
To adde French language, add the following :
left side will contain english item (i.e Submit) and the right site will contain the translated item (i.e. Soumettre).
5. How to change logo, app icon, and splash screen:
How to change the app logo ?
To change the app logo that appears in the top of the app, you need to replace AppTopLogo.png
in HubayWoo -> assets -> icons
with your logo:
How to change app icon and splash screen for iOS?
Open your HuBay.xcodeproj
in the iOS folder and search for App Icons Source and click in the arrow next to it:
Then you will be directed to the following screen where you can change app icons and also the splash screen:
To read more about Apple guidelines for creating App Icon click here
How to change app icons for Android ?
Open HubayWoo -> android -> app -> src -> main - res
and replace the following png files:
To read more about Google Play guidelines for creating App Icon click here
6. How to change the gradient header ?
Go to src -> app -> common -> Icons.js
then uncomment the desiered color and also change the AppColor from section 1 above to the code under the desired color.
Ensure that you comment other MenuBG and only uncomment the desired color.
Enable or Disable Dokan Multi-Vendor
If you have a single store, then you need to disable dokan option. Otherwise, you will get errors when product page is rendered.
To enable or disable dokan option change it to either true
or false
: Go to hubayWoo -> src -> app -> common -> Config.js
and make the following change:
Last updated