OpenCart Amazon S3 extension allows the administrator to manage images and videos on Amazon AWS server. This add-on allows downloadable data to be uploaded to the AWS server.
First, the admin needs to create uploads from the admin panel, which generates links on Amazon S3 for media files like images and videos.
It allows the administrator to store data on a remote server like Amazon S3 with data security and distribute the data load from the local server or store.
Note:
Initially, the user needs to register for the Amazon AWS account.
Additionally, if you are looking for the same functionality for your OpenCart multi-vendor marketplace, you can check out our Opencart multi-vendor Amazon S3 extension.
- This extension allows you to manage large amounts of data.
- Admin can create the download links of the downloaded data.
- Admin can upload selected files to server (local/Amazon).
- Customers can download the files directly from the Amazon server.
- This reduces the load on the local server.
- It also allows uploading downloadable product files to the cloud.
Start by extracting the downloaded zip file. Next, navigate to the appropriate Opencart version folder that corresponds to the version currently installed on your system.
Next, transfer the admin folder to the root directory of your Opencart installation.
Once you have downloaded the file, log in to the administrator and from the catalog section go to Extension cords>Iinstall and download it ocmod.zip deposit.
THE ocmod.zip the file will be available in the okmod folder under the module directory. You must download the aws-s3.ocmod.zip file in ocmod folder.

After downloading the file, go to Extension cords > Changes and click on the refresh field.

After that go to System -> Users -> User group and edit ‘Administrator‘ and choose to select all for access and modification of permissions and save it.

Note:
Before installing the module, make sure you have the composer installed on your system, click here to download the composer.
Run the command:
Run the given command in your opencart root directory.
composer require aws/aws-sdk-php
Configuring OpenCart Amazon S3
After successful installation of the module. Now to configure the module, go to Plugins > Plugins > Plugins.

You can see OpenCart Amazon S3 in the modules list. Then click on it to configure the Amazon S3 module.

The administrator configures the settings of the Open Amazon S3 Cart module as follows:
- Status- The administrator can configure the module status to Enabled or Disabled.
- Access key- The administrator receives the S3 access key after creating the account on Amazon S3.
- Secret key- The administrator receives the S3 secret key after creating the account on Amazon S3.
- Bucket name: The administrator configures the Amazon S3 bucket name.
- Compartment region – The administrator configures the Amazon S3 bucket region.

- Using the module- Admin can configure module usage for admin, store and both.
- Using Cloudfront- Admin can configure Cloudfront usage for admin, store and both.
- Cloudfront Distribution ID – The administrator receives a Cloudfront ID to access Cloudfront.
- Cloudfront URL- Here the admin needs to add the Cloudfront URL.
- Build the hide To create a cache, the administrator must click on this button.
- Empty cache The administrator can clear the cache by clicking this button.
After clearing the cache, click the Invalidate button and the Invalidation of Distributions is created.

Creating a downloadable product
The administrator can create a downloadable product by navigating to Catalog > Downloadsin the admin panel.

To create a downloadable product, the administrator must click on the ‘button+‘icon.
To create the downloadable product, you need to fill in the Download Name, File Name and Mask fields as shown in the image below.

Once the administrator registers the downloadable product, it creates a link to the product files on the Amazon server.
Admin can add a download link with any of the products present in the product list.
For example, in the image below, the admin selects the product “iPhone” to add the downloadable product.

The administrator must carry out the To modify action on the chosen product.

Subsequently, the administrator accesses the Links and in the Downloads field, add the downloadable product.


View of customer’s final products
Whenever customers come to the OpenCart store, they can see the same view as in the given image.

Now, to check the source of the product image, you can inspect and then hover over the product image.
If you have selected Amazon and Cloud in the setup, you can see in the given screenshot that the image source is Cloudfront.

if you select only Amazon, you can see that the product image is from Amazon AWS.

After all this, customers can download the product from Amazon AWS and CloudFront.

Here user can see all downloadable products and to download the product click on cloud download button.
That’s all for the Open Amazon S3 cart extension. However, if you encounter any problems, do not hesitate to create a ticket and share your views with us to improve the module. [email protected]
Current product version – 3.0.0.0
Supported framework version – 2.xxx, 3.xxx and 4.xxx
Comments are closed, but trackbacks and pingbacks are open.