Skip to main content

Introduction

In this guide we will configure some required changes in the mobile application files to connect it to our wordpress website.

We will also look at how to change app icon, app colors and other application settings to modify the application to our liking.

Required Modifications#

There are some required modifications that you need to make in order to connect the application to your wordpress website. Follow the steps below to make the changes:

WooCommerce Settings#

Open the file wooConfig.dart in android studio. It is located in woostore_pro / lib / services / woocommerce / wooConfig.dart and change the following variables to your specific values.

  • wordPressUrl - This should be the url of your wordpress site, where you installed the wordpress software

  • consumerKey - Your WooCommerce Consumer Key which you created while setting up WooCommerce. Make sure that is has only READ PERMISSION

  • consumerSecret - Your WooCommerce Secret Key which you created while setting up WooCommerce. Make sure that is has only READ PERMISSION

General Settings#

Open the file config.dart in android studio. It is located in woostore_pro / lib / constants / config.dart and change the following variables to your specific values.

  • currency
  • currencySymbol ( If the symbol is โ€œ $ โ€ then it must have a โ€œ \ โ€ before it as flutter uses dollar symbol internally for other uses as well. For example "\$" to use a ($) symbol )
  • placeHolderImageUrl
  • contactUsUrl
  • contactUsPhone
  • contactUsEmail
  • termsOfServiceUrl
  • privacyPolicyUrl

Please make sure that there are on errors as it might break your application.