Integrating the API with Magento

Guide on how to integrate our API with your Magento instance

Integrate our API with your Magento project:

  1. Set up a Magento project
  2. Acquire our API token
  3. Retrieve custom code from our Github repository (magento/index.html)
  4. Update the retrieved index.html with your token in place of YOURTOKEN
  5. Follow the guide:

In your Magento project folder structure, find the file called edit.phtml

You can edit it and it should be available at the path ending in:

<customer-module>/view/frontend/templates/address

1.Before the line:

<div class=”field street required”>

Insert the div that our code will attach to:

<div id=”geoaddress-checked”></div>

2.At the bottom paste the script tags from our index.html file.

Back on your account page, in the menu on the left, access Address Book.

image of the user's menu

When searching for an address, the form should now display a list of suggestions and clicking on an address should populate the fields with the available information where it can.

image of the fields of a form

 

Newsletter signup