PrestaShop
Greenleaze provides a module so you can easily integrate GreenLeaze into your PrestaShop store. The module can be installed on PrestaShop 7 to 9 with the following steps :
- Create an integration in the GreenLeaze dashboard;
- Install the module GreenLeaze on your PrestaShop store ;
- Configure the module with your GreenLeaze account credentials ;
- Unhook the buttons you do not want to use ;
- Customizing your store theme ;
- Disable the module for specific products if needed ;
- Listen for order creations to handle your own logic.
Install the module GreenLeaze on your PrestaShop store
On your GreenLeaze dashboard, click on the "Integrations" tab and then on the "PrestaShop" button. You will then need to provide the following information:
- Your PrestaShop store URL;
- Your contact email;
Then click on the "Download" button and install the module as you would any other PrestaShop module.
Configure the module with your GreenLeaze account credentials
Configure the module with your GreenLeaze account API key and the URL of the api depending on your needs :
- Development : https://staging.api.greenleaze.com
- Production : https://api.greenleaze.com
You may enter the API key that was given to you by GreenLeaze and use the webhook key generated for you in the GreenLeaze dashboard.
Unhook the buttons you do not want to use
You can unhook the buttons you do not want to use by unchecking the corresponding option in the module configuration (or in appearance > positions). The default buttons are :
- On the product page ;
- On the cart page ;
- On the checkout page.
Customizing your store theme
You can customize the styling of the GreenLeaze widget by editing the css file of your theme and using the appropriate selectors you can find by right clicking on the widget and selecting "Inspect" in your browser. Avoid editing the module files directly as they will be overwritten by the next module update.
Disable the module for specific products if needed
At installation Greenleaze Subscriptions is enabled for all products. You can disable it for specific products by checking the "Disable GreenLeaze for this product" option in the product admin page options tab. In module configuration you can also disable Greenleaze for specific categories.
Listen for order creations to handle your own logic
Depending on your Prestashop integration you may want to implement a custom logic when an order is created. By default All orders are created on your shop with a status 'Greenleaze'. You can look for orders with this status and implement your own logic. If you prefer implementing your own system you can implement Greenleaze by API.