Installing the WooCommerce plugin
The what3words WooCommerce plugin enables you to add a what3words address field to a WooCommerce checkout page. Users can then search for a what3words address with what3words address suggestions provided as a user types.
You will need a what3words API key to complete this tutorial.
To add the what3words WooCommerce plugin to a store first logon to your WooCommerce store admin portal. Select the “Plugins” tab from the menu and select “Add New” at the top of the page:
Search for “what3words” and click “Install Now” from the search result:
After the plugin has installed click to “Activate”
The plugin will now be installed and a new “what3words Searchbox” item will appear under the Settings menu. In order to complete the set up enter:
- API Key
- Add the id or class for the object that should become the what3words input to the “Input Selector”. This is in the format .class or #id.
You can also choose placeholder text for the what3words address input field to help customers input their addresses correctly, for example, by using “e.g. index.home.raft” as an example.
Click to save and the new field will appear on the checkout page