storekeeper / magento2-plugin
Storekeeper plugin
Installs: 127
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 1
Open Issues: 1
Type:magento2-module
Requires
- php: ^7.4|^8.1|^8.2
- brick/money: 0.5.*|0.6.*|0.7.*
- erusev/parsedown: v1.7.4
- magento/product-community-edition: ^2.4.5
- storekeeper/api-wrapper: v5.2
- symfony/polyfill-uuid: *
- dev-master
- 1.4.13
- 1.4.12
- 1.4.11
- 1.4.10
- 1.4.9
- 1.4.8
- 1.4.7
- 1.4.6
- 1.4.5
- 1.4.2
- 1.4.0
- 1.3.2
- 1.3.0
- 1.2.5
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.0
- 0.0.4
- 0.0.3
- 0.0.1
- dev-861n26rfb-clean-storekeeper-id-on-connect-disconnect
- dev-8694eqeag-orderable-stock
- dev-8694eqc95-update-docker-github-actions-m-247
- dev-brick-money-update
- dev-861mwafbu-initial-data-exports-from-magento
- dev-869487hd6-magento-data-export
- dev-861mu747r-unit-tests-in-docker
- dev-861mkv7wf-unit-tests-fixes
- dev-861mzbch2-add-check-for-the-tax-settings
- dev-861mkv7wf-unit-tests
- dev-861n2cbue-synchronizing-storekeeper-products-as-simple-products
- dev-861mzchda-order-payment-redirect
- dev-85zrzp9rt-resync-mass-action-on-orders-admin-grid
- dev-861mkv7wf-unit-tests-payload-example
- dev-861mvenr3-send-task-information-back-to-storekeeper
- dev-85zrzycay-refactor_helper_api_auth_class_into_service_contract
- dev-861mv5zp8-storekeeper-payments-with-refund
- dev-85zrzmqrq-cronjob-entity
- dev-85zrwx8jr-code-update-246
- dev-861mkt7z8-change-initial-connection-and-extra-info
- dev-861mkv8kv-adding-extra-payment-methods
- dev-861mc9j18-initial-code-changes
- dev-861mezejg-storekeeper-payment-gateway-integration
- dev-8677djn7f-bundle-config-products-combined
- dev-861mca4eg-update-composer-json-requirements
- dev-8677e8089-negative-stock-rewrite
- dev-develop
- dev-hotfix/20221205
- dev-staging
- dev-hotfix/20221202
- dev-hotfix/STORE-43
- dev-feature/STORE-53
- dev-acceptance
- dev-backup-staging
This package is auto-updated.
Last update: 2024-05-05 16:43:59 UTC
README
Connect your Magento 2 stores to StoreKeeper.
Important Notices
Before using module make sure that your shop have all tax rules, classes and rates configured accordingly to your shop's region. Please follow this official Magento guide.
If your project is using Multi-Source Inventory (MSI) functionality and/or MSI-related modules are enabled, please install this addon module.
Installation
- Go to your Magento 2 directory and install the plugin via
composer
:
composer require storekeeper/magento2-plugin
- Recompile your Magento 2 installation by running:
bin/magento setup:upgrade;
bin/magento setup:di:compile;
bin/magento setup:static-content:deploy;
bin/magento cache:clean;
Configuration
-
Log into your Magento 2 backend and go to
Stores
>Configuration
>StoreKeeper
>General
-
Select your store by navigating to the deepest level in the top left store navigation
-
Enable the plugin by setting the field
Enabled
toYes
-
Copy your
Auth Key
-
Press the
Save
button -
Log into your StoreKeeper account
-
Select the StoreKeeper Sales Channel you want to connect with
-
Go to
Settings
-
Scroll down to the
Synchronisation
button and click it -
Paste the
Auth Key
you previously copied from Magento 2 into theApi Key
field and clickConnect
-
Once succesfully connected, the fields in your Magento 2 backend should be filled with data
Check after installation
-
After installation check the results of the cron operations. Cron job name
storekeeper_storekeeper_cron_orders
has to be added tocron_schedule
DB table. Checkvar/log/cron.log
file as well. -
Check
queue_message
DB table. Topicstorekeeper.queue.events
with correct JSON body has to be added in it.
Payment Methods Configuration
Payment methods awaylable via Storekeeper Payment Gateway can be activated in two places:
- As an option of StoreKeeper Payments payment method, available under:
Stores->Configuration->Sales->Payment Methods->Other Payment Methods->StoreKeeper Payments (Yes/No)
In this case customer will see all Payment options activated on their storekeeper account.
2. As separate Payment option:
In order to display in Magento Checkout any of Payment Methods available on storekeeper account as an individual payment option, admin user needs to activate method under:
Stores->Configuration->Storekeeper->StoreKeeper Payments
In this case activated Payment Method(s) will appear as individual Payment Method option, and dissapear as sub-option on StoreKeeper Payments
Payment methods that does not have own logo will receive current store logo set in Content->Design->Configuration area of Magento admin panel
Queue
This plugin uses the Magento 2 queue consumer functionality. If you want to run the queue manually you can use the following command:
bin/magento queue:consumer:start storekeeper.queue.events
Disconnecting
Disconnecting your Magento 2 store can be done in two ways
Disconnect from StoreKeeper
-
Log into your StoreKeeper environment
-
Select your StoreKeeper Sales Channel
-
Go to
Settings
-
Scroll down to the
Disconnect
button and click it
Disconnect from Magento 2
-
Log into your Magento 2 backend
-
Log into your Magento 2 backend and go to
Stores
>Configuration
>StoreKeeper
>General
-
Select your store by navigating to the deepest level in the top left store navigation
-
Empty the value in the
Token
field -
Press the
Save
button
Debugging
If you're having any issues using the plugin, the first thing to do would be checking the magento2/var/log/storekeeper.log
for any errors.
Running integration tests
-
Prepare your enviroment according to Magento 2 integration testing documentation https://developer.adobe.com/commerce/testing/guide/integration/
-
To run integration tests from a specific directory tree in Magento 2, use the following command:
cd dev/tests/integration
../../../vendor/bin/phpunit ../../../vendor/storekeeper/magento2-plugin/Test/Integration
- To run a single test class in Magento 2, use the following command:
cd dev/tests/integration
../../../vendor/bin/phpunit ../../../vendor/storekeeper/magento2-plugin/Test/Integration/OrderCreationTest.php