Adding composer support

First we need to make a modicification to autoload composer in Opencart.

We create a file named composer.ocmod.xml on our desktop computer.
We add the following contents to this file, before saving it:

<?xml version="1.0" encoding="utf-8"?>
    <name>Add Composer Support</name>
    <author>J.J. van de Merwe</author>
    <file path="system/startup.php">
            <search position="after">
            <add position="insert">
require DIR_SYSTEM . '../vendor/autoload.php';

Now we install the modification in Opencart by using the menu option:

extension -> extension installer

After the installation, we need to clear the customization cache. To do this we enter the modification just installed.

Now click on the middle icon (save and clear) in the right top of your screen (see image below):

Last update: Tue, 27 Aug 2019 7:40:01