There are basically two ways in which you can install Oxid modules: Via Composer or manually. Using our Mollie module as an example, we will show you both ways.
Installing Oxid modules via Composer
Step 1: Create a Mollie account
Create a Mollie account or log in to your existing Mollie account.
Step 2: Log in to the web server
Connect to your web server via SSH and navigate to the root directory of your Oxid installation (where the composer.json is located).
Step 3: Install the Oxid module
Now install the Mollie plugin for Oxid with the following command:
composer require mollie/mollie-oxid
Installing Oxid modules manually
Step 1: Create a Mollie account
If you do not yet have a Mollie account, first create an account for your company.
Step 2: Download zip file with Oxid module
Download the current release from GitHub.
Step 3: Create a folder on the web server
Log in to your web server and create the "mollie" folder in the "source/modules" folder. Then create the subfolder "molliepayment" in the folder you have just created.
Step 4: Upload module content
Now upload the content of the zip file downloaded in step 2 to the "sources/modules/mollie/molliepayment" folder.
Step 5: Edit Composer.json
Now add the following code to the autoload configuration of the "composer.json" file in the root directory of your Oxid installation:
"autoload": {
"psr-4": {
"Mollie\\Payment\\": "./source/modules/mollie/molliepayment",
"Mollie\\Api\\": "./source/modules/mollie/molliepayment/lib/mollie-api-php/src/"
}
},
Then execute the composer dump-autoload command via the console in the root directory.
Step 6: Import module configuration
Navigate via SSH to the folder containing the Source and Vendor folders. Execute the following commands there:
vendor/bin/oe-console oe:module:install-configuration source/modules/mollie/molliepayment/
vendor/bin/oe-console oe:module:apply-configuration
You will then receive the message "Module configuration has been installed" and "Applying modules configuration for the store with id 1: Applying configuration for module with id molliepayment"
You can now continue with the plugin configuration to finish setting up the Mollie Oxid module.