Purpose: In this article, we will run you through the steps you need to take to install the Dynamic Checkout plugin for your Magento v2.4 webshop integration.
Requirements
The Dynamic Checkout for beta module requires Magento2 CE version 2.4 or higher. You can download the beta version of the module here: https://github.com/SendCloud/sendcloud/tree/dynamic-checkout-beta
Step 1: Installation
- Add the Sendcloud repository to the list of repositories within the
composer.json
file:
"repositories": {
"sendcloud": {
"type": "vcs",
"no-api": true,
"url": "git@github.com:SendCloud/sendcloud.git"
}
}
- Reference the
dynamic-checkout-beta
feature branch within the list of dependencies in thecomposer.json
file:
"require": {
"sendcloud/sendcloud": "dev-dynamic-checkout-beta",
}
- Update that dependency using the following command:
composer update sendcloud/sendcloud
- Run the following console commands in the Magento 2 root folder:
php bin/magento module:enable SendCloud_SendCloud
php bin/magento setup:upgrade
- This will set up the plugin and after both commands finish their execution, the plugin will be available in the Magento admin, under Sales > Sendcloud > Configuration.
Reverting to a previous version
To revert to a previous version of the plugin, simply remove the repository from the list of repositories and set the version of the sendcloud/sendcloud
dependency to a previous version:
"require": {
"sendcloud/sendcloud": "1.8.6",
}
Please also run the Magento setup console command for the changes to take effect.
php bin/magento setup:upgrade
Step 2. Cache Flush & Log out
- Go to System > Cache management, and click
Flush Magento Cache
- When you see the message "Cache is cleaned successfully", you are required to log out of your Magento Admin interface.
- Once you're logged out, log back in once again. Please note: This step is required to refresh all the permissions for your user.
Next steps
Once the Dynamic Checkout plugin is successfully installed, you should see Sendcloud appear in the main menu in your Magento V2.4 environment under Sales > Sendcloud > Configuration:
You can now continue on to configuring a unique checkout per each of the store views you have in Magento.