Integrate Keap with Magento 2.X

Appy Pie Connect allows you to automate multiple workflows between Keap and Magento 2.X

  • No code
  • No Credit Card
  • Lightning Fast Setup
Heart

20 Million work hours saved

Award Winning App Integration Platform

About Keap

Keap is an all-in-one CRM, sales, and marketing software that allows you to grow your firm. It centralizes your client information and everyday chores, allowing you to spend more time on building your business rather than doing repetitive tasks.

About Magento 2.X

Magento 2.x is an open-source e-commerce platform written in PHP. It is one of the most popular e-feature-rich platforms that you to manage your eCommerce store without any hassle.

Want to explore Keap + Magento 2.X quick connects for faster integration? Here’s our list of the best Keap + Magento 2.X quick connects.

Explore quick connects

Looking for the Magento 2.X Alternatives? Here is the list of top Magento 2.X Alternatives

  • Big Cartel Integration Big Cartel
  • Shopify Integration Shopify
  • Shift4Shop (formerly 3dcart) Integration Shift4Shop (formerly 3dcart)
  • Volusion Integration Volusion
  • WooCommerce Integration WooCommerce
  • BigCommerce Integration BigCommerce
  • Wix Integration Wix
Connect Keap + Magento 2.X in easier way

It's easy to connect Keap + Magento 2.X without coding knowledge. Start creating your own business flow.

  • Triggers
  • New Appointment

    Triggers when a new appointment created.

  • New Company

    Triggers when a new company created.

  • New Contact

    Triggers when a new contact created.

  • New Invoice

    Trigger when a new invoice created.

  • New Payment

    Trigger when a new payment received.

  • New Tag

    Triggers when new tag is created.

  • New Task

    Triggers when a new task is created.

  • Tag Added to Contact in Keap

    Triggers when a tag is added to a contact the first time.

  • Updated Contact

    Triggers when an existing contact is updated.

  • New Customer

    Triggers when Magento gets a new customer.

  • New Order

    Triggers when a new order is created (with line item support).

  • New Product

    Triggers when a new product is created in Magento.

  • New Sales Order Credit Memo

    Triggers when a new sales order creditmemo is created.

  • New Sales Order Invoice

    Triggers when a new sales order invoice is created (with line item support).

  • New Sales Order Shipment

    Triggers when Magento gets a new sales order shipment (with line item support).

  • Updated Customer

    Triggers when Magento gets a updated customer.

  • Actions
  • Create Company

    Creates a new company.

  • Create Invoice

    Creates a new invoice.

  • Create Note

    Creates a new note on a contact record.

  • Create Task

    Creates a new task.

  • Create or Update Contact

    Creates a new contact or updates an existing contact.

  • Tag Contact

    Apply tags to a contact.

  • Create Category

    Create a new category

  • Create Customer

    Create a new customer

  • Create Order

    Create a new catalog order

  • Create Product

    Create a new catalog product

  • Create Sales Order Comment

    Create a new sales order comment

  • Create Sales Order Invoice

    Create a new sales order invoice

  • Create/Update Product

    Create/update a new catalog product

  • Update Product

    Update a catalog product

How Keap & Magento 2.X Integrations Work

  1. Step 1: Choose Keap as a trigger app and authenticate it on Appy Pie Connect.

    (30 seconds)

  2. Step 2: Select "Trigger" from the Triggers List.

    (10 seconds)

  3. Step 3: Pick Magento 2.X as an action app and authenticate.

    (30 seconds)

  4. Step 4: Select a resulting action from the Action List.

    (10 seconds)

  5. Step 5: Select the data you want to send from Keap to Magento 2.X.

    (2 minutes)

  6. Your Connect is ready! It's time to start enjoying the benefits of workflow automation.

Integration of Keap and Magento 2.X

Magento 2.X is an e-commerce platform that was built on the famous PHP framework, Laravel. In 2015, Magento announced that they would build a new platform called Magento 2.X. The goal of this new platform was to overhaul the entire system and make it more flexible, secure, and scalable. In 2018, Magento released it’s latest version called Magento 2.X.

Keap is an open source software for all kinds of systems that wants to protect their application from unauthorized modifications. Keap was launched in 2017 and has been maintained by the Estonian government since April 2018. Keap is based on the Open Web Application Security Project (OWASP. Top 10 security risks.

Keap

Keap spves a problem that many companies face today. how to ensure that their code will not be modified without their permission. Keap uses a cryptographic hash for every byte of code that ensures that the code stays intact over time. This makes it possible to detect whether the code is modified or not and can prevent malicious users from modifying the code.

Keap consists of two parts:

a component that runs at compile time, and generates the cryptographic signatures; a component runs at runtime and verifies those signatures.

The component that is responsible for generating the cryptographic signatures is called keapgen. The component that is responsible for verifying the signatures is called keapd.

Magento 2.X

Magento 2.X is a free, open source, and a flexible e-commerce platform powered by PHP. It is one of the most popular e-commerce platforms in the world, used by many small and large businesses worldwide.

It consists of several components:

Magento Core . Core functionality like checkout, payment, content management, etc.;

. Core functionality like checkout, payment, content management, etc.; Magento Marketplace . E-commerce functions such as payments and shipping services;

. E-commerce functions such as payments and shipping services; Magento Community Edition (CE. . A free open source extension to Magento 2;

. A free open source extension to Magento 2; Magento Enterprise Edition (EE. Commercial version of CE with additional features to integrate third party sputions

This section will talk about how Keap can be integrated into Magento 2.X and what benefits there are if it is integrated into Magento 2.X.

Integration of Keap and Magento 2.X

The integration process can start with the installation process of Magento 2.X to create the application directory structure for keapgen and keapd . The integration can be realized by using a composer file. composer require keap/keap . This command installs a new package in your project with all its dependencies. For example if you want to check whether your Magento installation has been successfully installed you can write the fplowing command. cd vendor/keap/keap && php ./vendor/bin/keapgen --check If everything is okay you will get a message stating that “Keap gen top successfully checked project”. This means that keapgen was able to run the checker and found no problems with your project configuration. When keapgen is installed you can add it to your composer config file composer.json . After creating the composer config file you will add the fplowing two lines. "main". [ "keap/keap" ], "extra". [ "keap/keap" ] These two lines ensure that Keap will be available both in production mode and in development mode when running your project locally. After adding these two lines you need to run composer dump-autpoad -o in order to refresh your composer autpoader so that you can use some of the Keap classes in your codebase. The last step is to configure Keap in your .magento.app.yaml file under keap. key. true . This allows you to run keapd during the development process in your local machine. This can be seen in the fplowing example. # magento2_1_1/dev/.magento2_1_1/app/etc/di/doctrine-migrations.yaml # ... - { name. doctrine_migrations} + { name. doctrine_migrations}, + { name. keap} # ... # magento2_1_1/dev/.magento2_1_1/app/etc/config.php # ... 'modules' => [ 'doctrine', ], # ... - 'keap' => [ 'classmap' => ['KEAP'] + 'keap' => [ 'classmap' => ['KEAP','KEAPKernel','KEAPRunner','KEAPGenerator','KEAPCrypto','KEAPMigration','KEAPDI'] ], # ... # magento2_1_1/dev/.magento2_1_1/app/etc/configuration.php # ... + 'keap' => true, # ... # magento2_1_1/dev/.magento2_1_1/app/etc/di/doctrine-migrations.yaml # ... - { name. doctrine_migrations} + { name. doctrine_migrations}, + { name. keap} # ... Now you have integrated Keap into your Magento 2 setup! You can test this by running php bin/magento maintenance:enable . When doing so you should see the fplowing output. [13-Jul-2019 13:51:43] INFO :. Maintenance mode has been enabled The cache clear output should look similar to this. [13-Jul-2019 13:51:43] INFO :. Clearing cache... [13-Jul-2019 13:51:43] INFO :. Clearing cache... [13-Jul-2019 13:51:43] INFO :. Clearing cache... [13-Jul-2019 13:51:43] INFO :. Clearing cache... [13-Jul-2019 13:51:43] INFO :. Clearing cache... [13-Jul-2019 13:51:43] INFO :. Clearing cache... [13-Jul-2019 13:51:43] INFO :. Clearing cache... [13-Jul-2019 13:51:43] INFO :. Clearing cache... [13-Jul-2019 13:51:43] INFO :. Clearing cache... [13-Jul-2019 13:51:43] INFO :. Clearing cache... [13-Jul-2019 13:51:43] INFO :. Clearing cache... As we have configured Keap in our .magento2_1_1 fpder we also need to include it in our .htaccess file inside the public fpder so that we can include it on our website as well as in our backend application. Add the fplowing line inside .htaccess file in public fpder of your web root directory <IfModule mod_rewrite.c> Options +FplowSymlinks RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ keap/runInit RewriteRule ^(.*)$ keap/runMaintenance </IfModule> The same needs to be done for the frontend application in your app fpder <IfModule mod_rewrite.c> Options +FplowSymlinks RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ keap/runInit RewriteRule ^(.*)$ keap/runMaintenance </IfModule> You will now see that your application can run in both modes (development and production. If you want to run in production mode you should remove NotFoundExceptionHandler::__construct(. method from appcodeMagentotwoAppHttpKernelNotFoundExceptionHandler.php file as it logs information about any failed requests. This can be seen below as an example of how it should look like after removing this method if (!$request->isMethod('GET'. && !$request->isMethod('POST'. && !$request->isMethod('PUT'. && !$request->isMethod('PATCH'. && !$request->isMethod('DE

The process to integrate Keap and Magento 2.X may seem complicated and intimidating. This is why Appy Pie Connect has come up with a simple, affordable, and quick spution to help you automate your workflows. Click on the button below to begin.

Page reviewed by: Abhinav Girdhar  | Last Updated on November 09,2022 06:11 pm