Skip to content

placeholder-tech/magento2-klar

 
 

Repository files navigation

Magento 2 Klar Integration Module

Overview

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.

Compatibility

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.

Installation

To install the module, follow these steps:

  1. Put your Magento 2 store into maintenance mode by running the following command:

    bin/magento maintenance:enable
    
  2. 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"
      }
    ]
    
  3. Add the module to your project's composer.json file using the require 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.

  4. Run the Composer install command:

    composer install
    
  5. Enable the module by running the Magento CLI command:

    bin/magento module:enable ICT_Klar
    
  6. Add following section into env.php file:

'cron_consumers_runner' => [
    'cron_run' => true,
    'consumers' => [
        'klar.order.synchronization'
    ]
]
  1. Run the setup upgrade command to install the module and its dependencies:

    bin/magento setup:upgrade
    
  2. Compile your Magento dependency injection configuration:

    bin/magento setup:di:compile
    
  3. Deploy your static view files:

    bin/magento setup:static-content:deploy
    
  4. Clear the Magento cache:

bin/magento cache:clean
  1. Take your Magento 2 store out of maintenance mode by running the following command:
bin/magento maintenance:disable
  1. Make sure that cron configured properly (ref. Magento 2 DevDocs)

  2. Configure the module as needed.

Installing updates

  1. Update the module using the update command:

    composer update ltd-iconcept/magento2-klar
    
  2. Put your Magento 2 store into maintenance mode by running the following command:

    bin/magento maintenance:enable
    
  3. Proceed with installation steps 6. - 13.

Configuration

To enable Magento 2 Klar integration in the Magento admin panel, follow these steps:

  1. Log in to the Magento admin panel.
  2. Navigate to Stores > Configuration > Sales > Klar.
  3. Set the "Enabled" flag to "Yes".
  4. Fill in the "API URL", "API Version", and "API Token" fields with the appropriate values. These values will be provided to you by Klar.
  5. Save the configuration and clear Magento cache.

Configuration example:

Configuration

For the latest configuration parameters please refer to the Klar API documentation.

API URL

For live:

   https://open-api.durchsichtig.xyz

API Version

   12.2022

API Token

The token can be found in Klar in the Klar Api data source created for this shop.

Token

Usage

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:

CLI Command

command

bin/magento klar:order <ids> [<from-date>] [<to-date]

ids (required)

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

from-date (optional)

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

to-date (optional)

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.

Support

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.

License

The Magento 2 Klar integration module is licensed under the GNU General Public License v3.0.

About

Magento 2 Klar integration.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 99.4%
  • HTML 0.6%