Woocommerce

Setup Wordpress

  1. Unzip and upload to hosting

Setup Woocommerce

  1. Generate Consumer Key and Consumer Secret with Read/Write access https://docs.woocommerce.com/document/woocommerce-rest-api/

WordPress permalinks must be enabled at: Settings > Permalinks. https://wordpress.org/support/article/using-permalinks/

Setup .htaccess file

# BEGIN WordPress
 <IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteBase /
 RewriteRule ^index\.php$ - [L]
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule . /index.php [L]
 </IfModule>
 # END WordPress

Setup Plugins

  • JSON API A RESTful API for WordPress, this plugin is used for only the registration feature (other request from the API we use default REST API from Wordpress site)

  • JSON API User Extends the JSON API Plugin with a new Controller to allow RESTful user registration, authentication, password reset

Activate the controller through the JSON API menu found in the WordPress admin center (Settings -> JSON API)

To support multi languages feature, following feature should be install (optional):

  • WPML 3.4 or above

  • WPML String Translation 2.0 or above

  • WPML Translation Management 2.2 or above

  • WPML to WP API: use for multi language feature, this api will support to change the product/title/category base on the select language from WPML plugin

  • Detail document: click here

In iOS, after creating the locales, you’ll need to add them in your project’s configuration in Xcode:

Last updated