The Magento 2 Klar integration module is a powerful tool designed to streamline the process of integrating the Klar business intelligence platform into your Magento 2 store. With this module, you can easily connect your store to Klar and centralize your data from a variety of sources, including your eCommerce platform, payment providers, and advertising channels. Once your data is centralized, you can use Klar's powerful reporting and analytics tools to gain deep insights into your store's performance, from customer behavior and sales trends to advertising ROI and much more.
This module has been developed and tested on Magento 2.4.5-p1 using PHP 8.1. It may work with other versions of Magento 2 and PHP, but we cannot guarantee compatibility. If you encounter any issues with compatibility, please let us know by creating an issue on GitHub.
To install the module, follow these steps:
-
Put your Magento 2 store into maintenance mode by running the following command:
bin/magento maintenance:enable
-
Add the GitHub repository as a new repository in your Magento 2 project's
composer.json
file:"repositories": [ { "type": "vcs", "url": "https://github.com/ltd-iconcept/magento2-klar" } ]
-
Add the module to your project's
composer.json
file using therequire
command:composer require ltd-iconcept/magento2-klar:^1.0.0
The
^1.0.0
indicates that you want to install version 1.0.0 or later. -
Run the Composer install command:
composer install
-
Enable the module by running the Magento CLI command:
bin/magento module:enable ICT_Klar
-
Add following section into
env.php
file:
'cron_consumers_runner' => [
'cron_run' => true,
'consumers' => [
'klar.order.synchronization'
]
]
-
Run the setup upgrade command to install the module and its dependencies:
bin/magento setup:upgrade
-
Compile your Magento dependency injection configuration:
bin/magento setup:di:compile
-
Deploy your static view files:
bin/magento setup:static-content:deploy
-
Clear the Magento cache:
bin/magento cache:clean
- Take your Magento 2 store out of maintenance mode by running the following command:
bin/magento maintenance:disable
-
Make sure that cron configured properly (ref. Magento 2 DevDocs)
-
Configure the module as needed.
-
Update the module using the
update
command:composer update ltd-iconcept/magento2-klar
-
Put your Magento 2 store into maintenance mode by running the following command:
bin/magento maintenance:enable
-
Proceed with installation steps 6. - 13.
To enable Magento 2 Klar integration in the Magento admin panel, follow these steps:
- Log in to the Magento admin panel.
- Navigate to Stores > Configuration > Sales > Klar.
- Set the "Enabled" flag to "Yes".
- Fill in the "API URL", "API Version", and "API Token" fields with the appropriate values. These values will be provided to you by Klar.
- Save the configuration and clear Magento cache.
For the latest configuration parameters please refer to the Klar API documentation.
For live:
https://open-api.durchsichtig.xyz
12.2022
The token can be found in Klar in the Klar Api data source created for this shop.
After the successful installation this module sends all orders to Klar after they've been placed in the Magento store.
If you want to re-export certain orders or export the whole order history you can use the following CLI commands:
command
bin/magento klar:order <ids> [<from-date>] [<to-date]
Either all
or a comma separated list or order ids e.g. 123,124,125
.
all
exports all orders in the store.
Examples:
bin/magento klar:order all
bin/magento klar:order 000000001,000000002,000000003
Limits the export of all
history with a starting date. The date has to be provided in the format YYYY-MM-DD
Example:
bin/magento klar:order all 2023-01-01
Limits the export of all
history with an end date. The date has to be provided in the format YYYY-MM-DD
Example:
bin/magento klar:order all 2023-01-01 2023-06-01
"Export all orders from the 1st of January 2023 to the 1st of June 2023."
The range start and end are included.
If you encounter any issues with the Magento 2 Klar integration module, please report them in the GitHub repository or contact the module developer for support.
The Magento 2 Klar integration module is licensed under the GNU General Public License v3.0.