Skip to content

OpenCart

In this article

Information

OpenCart - is a free and open-source CMS for managing online stores of various sizes and activities. Its modular architecture, strict separation of client and administrative parts, and regular security updates provide flexibility, scalability, and security.

OpenCart. Key Features

  • Product Catalog Management. OpenCart is a comprehensive e-commerce solution that provides a wide range of options for creating and managing the goods catalog of an online store. This system allows you to organize a catalog with an unlimited number of goods, descriptions, images, attributes and variations. Goods can be grouped into easy-to-navigate categories and filtered by various criteria (brand, price, etc.).
  • Simple checkout process. OpenCart has an intuitive interface for shoppers that simplifies the checkout process. The system is integrated with popular payment gateways, such as PayPal, and also allows you to set up various payment methods, including bank transfers and cash payments.
  • Order Management. The OpenCart administration panel provides convenient tools for managing orders, tracking their status, and printing supporting documents such as invoices and packing slips.
  • Customization and Integration. With support for multiple currencies and tax systems, the system can be customized to work in different countries and meet local requirements.
  • Marketing tools. The system provides marketing tools such as discount and coupon system, e-marketing tools and integration with social networks. OpenCart provides SEO optimization tools to improve store visibility in search engines.
  • Analytics and Reporting. Detailed analysis of sales, orders, products, and customers allows you to track business performance and make informed decisions based on data.

Features of the assembly

  • Installation on RHEL 8+ family and Ubuntu 20.04+ is possible.
  • Installation time together with OS is 15-20 minutes.
  • Path to OpenCart directory (example): - /root/opencart.
  • Path to OpenCart web server files: - /var/www/html/opencart.
  • Installed software:
    • MySQL
    • PHP v8
    • OpenCart
  • The web interface will be available at URL: http://{server_ip}/opencart/.

Getting started after deploying OpenCart

A notification will be sent to the e-mail specified during registration that the server is ready for work after paying for the order. It will contain the IP address of the VPS, as well as the login and password for the connection. Clients of our company manage the hardware in the server`s and API control panel - Invapi.

You can find the authorization data either in the Info >> 'Tags tab of the server control panel or in the email that was sent.:

  • Link to access the WordPress dashboard with a web interface: in the webpanel tag;
  • Login and Password: comes in a letter to your email.

OpenCart initial settings

To access the OpenCart website, go to http://{server_ip}/opencart/ URL. Accept the license agreement and ensure that all system requirements are met (all items should be in the status of OK). Once the check is successful, click the Continue button to proceed to the database settings menu.

Database setup

Enter the MySQL database connection parameters in this step:

  • DB Driver - MySQLi;
  • Hostname - localhost;
  • Username - opencart;
  • Password - To access the server, use the password specified during the operating system installation. This password can be found in the email received after the server delivery;
  • Database - opencart;
  • Port -3306.

Please provide the administrator's details:

Upon entering this data, OpenCart will generate a database named opencart. The provided credentials will be utilized to establish a connection to the database. The admin panel can be accessed at http://{server_ip}/opencart/admin.

After the initial authorization in the administrator panel, you will be prompted to relocate the storage directory. It is recommended to select the Automatically Move option, choose /var/www/ as the file location from the drop-down menu, and click Move button. Then, confirm the action in the window that appears and wait for the process to complete.

Once the storage directory has been successfully migrated, a notification will appear.

After authorizing in the administrator panel for the first time, you must also delete the installation directory. A notification will appear to confirm the deletion. To delete this directory, follow these steps:

  1. Navigate to the /var/www/html/opencart/ directory:

    cd /var/www/html/opencart/
    
  2. Use the rm command to delete the install directory:

    rm -r install
    

Note

For detailed information on the basic OpenCart settings, refer to the developers documentation.

Ordering a server with OpenCart using the API

curl -s "https://invapi.hostkey.com/eq.php" -X POST \
--data "action=order_instance" \
--data "token=" \
--data "deploy_period=" \
--data "deploy_notify=" \
--data "email=" \
--data "pin=" \
--data "id=" \
--data "os_id=" \
--data "root_pass=" \
--data "hostname=" \
--data "ssh_key=" \
--data "post_install_callback=" \
--data "post_install_script=" \
--data "reinstall_key=" \
--data "os_name=" \
--data "imitate_deploy=" \
--data "imitate_error=0" \
--data "own_os=" \
--data "jenkins_task=" \
--data "traffic_plan=" \
--data "invoice_relid=" \
--data "preset=" \
--data "location_name=" \