Back to Top

Guide for OpenCart Amazon S3

Updated 2 December 2024

OpenCart Amazon S3 extension allows the admin to manage images and videos on the Amazon AWS server. This add-on helps to upload the downloadable data to the AWS server.

First, the admin needs to create downloads from the admin panel, which generates links on Amazon S3 for media files like images and videos.

It allows the admin to store data on a remote server like Amazon S3 with data security and distributes the data load of the local server or store.

Note:

Initially, the user needs to register themselves to the Amazon AWS account.

Searching for an experienced
Opencart Company ?
Find out More

Additionally, If you are looking for the same functionality for your OpenCart multi vendor marketplace, then, you can check our Opencart Multi Vendor Amazon S3 Extension.

Features

  • This extension helps to handle large amounts of data.
  • Admin can create the download links of the uploaded data.
  • Admin can upload the selected files on the Server (Local/Amazon).
  • Customers can download the files directly from the Amazon Server.
  • It reduces the load from the local server.
  • It also allows to upload of downloadable product files on the cloud.

Installation

Start by extracting the downloaded zip file. Next, navigate to the appropriate Opencart version folder that matches the version currently installed on your system.

Then, transfer the admin folder into the root directory of your Opencart installation.

module installation

Once you have uploaded the file then login to admin and from the catalog section go to Extensions>Installer and upload the ocmod.zip file.

The ocmod.zip file will be available in the ocmod folder under the module directory. You need to upload the aws-s3.ocmod.zip file from the ocmod folder.

extension-installer

After uploading the file go to the Extensions > Modifications and click on the refresh field.

modifications

After that, Go to System -> Users -> Usergroup and edit ‘Administrator’ and choose to select all for both Access and Modify Permission and save it.

user-groups

Note:

Before installing the module make sure the composer is installed into your system click here to download the composer.

Run command: 

Run the given command into your opencart root directory.

composer require aws/aws-sdk-php

OpenCart Amazon S3 Configuration

After the Successful installation of the module. Now to configure the module go to Extensions > Extensions > Modules.

module navigation

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

enable module

The admin configures the settings of the OpenCart Amazon S3 module as follows:

  •  Status- The admin can configure the module status as Enabled or Disabled.
  • Access Key- The admin receives the S3 Access Key after account creation on Amazon S3.
  • Secret Key- The admin receives the S3 Secret Key after account creation on Amazon S3.  
  • Bucket Name- The admin configures the name of the Amazon S3 bucket. 
  • Bucket Region- The admin configures the region of the Amazon S3 bucket. 
module configuration
  •  Module Usage- The admin can configure the module usage for admin, store, and both.
  • Cloudfront Usage- The admin can configure the cloudfront usage for admin, store, and both.
  • Cloudfront Distribution ID- The Admin receives a Cloudfront Id to access Cloudfront.
  • Cloudfront URL- Here admin needs to add the Cloudfront URL.  
  • Build Cache- To build a cache admin needs to click on this button.
  • Clear Cache- Admin can clear the cache by clicking on this button. 

After clearing the cache click on the Invalidation button, and the Invalidation of distributions is created.

Invailidation

Creating Downloadable Product

The admin can create a downloadable product by navigating through Catalog > Downloads, in the admin panel. 

view downloadable products

To create a downloadable product, the admin needs to click on the ‘+‘ icon.

To create the downloadable product need to fill Download Name, Filename, and Mask fields as shown in the image below. 

create downloadable product

Once the admin saves the downloadable product, it creates a link of the product files on the Amazon server. 

Add Downloadable Product

The admin can add a download link with any of the products present in the product list. 

For instance, in the image below, the admin selects the product “iPhone” to add the downloadable product. 

products list

The admin will have to perform the Edit action on the chosen product. 

create product

Thereafter, the admin navigates to the Links tab, and in the Downloads field, adds the downloadable product. 

add downloadable product
add product

Customer end Products View

Whenever the customers have come to the OpenCart store they can see the same view that is in the given Image.

frontend view all products

Now to check the source of the product image can inspect and then hover over the product image.

If you selected Amazon and Cloud both in the configuration then you can see in the given screenshot the image source is Cloudfront.

view image source

if you select only Amazon then you can see the product image is coming from Amazon AWS.

view image source

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

downloadable products

Here the user can see the all downloadable products and to download the product click on the cloud download button.

Support

That’s all for the Opencart Amazon S3 extension. Still, if have any issues feel free to raise a ticket and let us know your views to make the module better [email protected]

Current Product Version - 3.0.0.0

Supported Framework Version - 2.x.x.x, 3.x.x.x and 4.x.x.x

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home

Table of Content