Esta pantalla explica los pasos a seguir para configurar la sincronización de productos, stock y ventas de tu ecommerce WooCommerce (WordPress) con tu cuenta de Stockagile. Para saber más información sobre cómo funciona la sincronización entre Stockagile y tu ecommerce puedes leer Cómo funciona la sincronización entre Stockagile y la ecommerce.
It is important to know that we synchronise from Version 5 of Woocommerce.
Steps to generate WooCommerce passwords:
- We make sure we have the WordPress WooCommerce plugin installed.
- Once installed, in the WordPress side menu, go to the WooCommerce button and click on the Settings button in the menu that has opened.
- Go to the Settings tab.
- Click on the REST API button just below the tabs.
- Click on the Add key button.
- Here, we create a key by filling in the following fields:
- Descripción: escribimos Stockagile
- User: select an administrator user from the list.
- PermitsSelect Reading/Writing.
- Once you have filled in the fields, click on Save API key.
- The screen will then show 2 keys: the Customer Key and the Customer's secret key. Estos codigos serán necesarios para la configurarion de la pagina desde Stockagile.

Steps to set up WooCommerce sales synchronisation:
- Dentro de Stockagile, desplegamos el menú de Ecommerce en el menú lateral y entramos en la vista de Páginas.
- Entramos dentro de la página del Ecommerce configurada. En el caso de no tener ninguna página configurada seleccionamos nueva página arriba a la derecha.
- Automáticamente se abrirá un formulario, y aquí podemos rellenar los detalles de nuestra nueva página; tendremos que añadir:
- Plataformas: en este caso WooCommerce
- Nombre de la página
- URL de la Web
- Almacenes de Stock
- Almacén desde el cual se cogerán la existencias de los productos
- Configuración de Ticket
- Número de serie de los pedidos
- Nivel de precio que se aplicarán a los pedidos a través de la Ecommerce
- Clave del consumidor: Clave del cliente de WooCommerce
- Secreto del cliente: Clave secreta del cliente de WooCommerce
- Click on the button to copy the WooCommerce Webhook field.
- We go to WordPress.
- In the WordPress side menu, we hover over the WooCommerce button and click on the Settings button in the menu that has opened.
- Go to the Settings tab.
- Click on the Webhooks button just below the tabs.
- Here, we create a webhooks by clicking on the Add Webhook button with the following fields:
- Nombre: escribimos Creación pedido Stockagile.
- Status: select Active.
- Subject: select Order created.
- Delivery URL: paste the text copied in point 3.
- Secret: we paste only the text just after the "key=" of the text copied in the 3.
- API versionSelect Integration with WP REST API v3
- Save by clicking on Save webhook and you will see a message informing you that the webhook has been successfully created.
- Create another Webhook by clicking again on the Add Webhook button with the following fields:
- Nombre: escribimos Actualización pedido Stockagile.
- Status: select Active.
- Subject: We select Updated order.
- Delivery URL: paste the text copied in point 3.
- Secreto: pegamos solo el texto que hay justo después del “key=” del texto copiado en el punto 3.
- API version: select Integration with WP REST API v3
- Save by clicking on Save webhook.


