2017 © Pedro Peláez
 

project opencart

OpenCart

image

opencart/opencart

OpenCart

  • Monday, July 30, 2018
  • by opencart
  • Repository
  • 652 Watchers
  • 4343 Stars
  • 4,275 Installations
  • PHP
  • 9 Dependents
  • 0 Suggesters
  • 3448 Forks
  • 252 Open issues
  • 50 Versions
  • 67 % Grown

The README.md

OpenCart

Overview

Minimum PHP Version GitHub release Lint, (*1)

OpenCart is a free open source e-commerce platform for online merchants. OpenCart provides a professional and reliable foundation from which to build a successful online store., (*2)

How to install

Please read the installation instructions included in the repository or download file., (*3)

How to upgrade from previous versions

Please read the upgrading instructions included in the repository or download file., (*4)

Reporting a bug

Read the instructions below before you create a bug report., (*5)

  1. Search the OpenCart forum, ask the community if they have seen the bug or know how to fix it.
  2. Check all open and closed issues on the GitHub bug tracker.
  3. If your bug is related to the OpenCart core code then please create a bug report on GitHub.
  4. READ the changelog for the master branch
  5. Use Google to search for your issue.
  6. Make sure that your bug/issue is not related to your hosting environment.

If you are not sure about your issue, it is always best to ask the community on our bug forum thread, (*6)

Important!, (*7)

  • If your bug report is not related to the core code (such as a 3rd party module or your server configuration) then the issue will be closed without a reason. You must contact the extension developer, use the forum or find a commercial partner to resolve a 3rd party code issue.
  • If you would like to report a serious security bug please PM an OpenCart moderator/administrator on the forum. Please do not report concept/ideas/unproven security flaws - all security reports are taken seriously but you must include the EXACT details steps to reproduce it. Please DO NOT post security flaws in a public location.

How to contribute

Fork the repository, edit and submit a pull request., (*8)

Please be very clear on your commit messages and pull request, empty pull request messages may be rejected without reason., (*9)

Your code standards should match the OpenCart coding standards. We use an automated code scanner to check for most basic mistakes - if the test fails your pull request will be rejected., (*10)

Local Development with Docker

This project includes a Docker-based environment for local development., (*11)

Prerequisites

  • You must have Docker and Docker Compose installed on your machine. Docker Desktop is the easiest way to get them.
  • You must have make installed on your system (usually pre-installed on macOS and Linux distributions).

[!IMPORTANT], (*12)

For Windows Users: It is strongly recommended to use the WSL 2 (Windows Subsystem for Linux) backend for Docker Desktop. You should clone this project inside your WSL distribution (e.g., Ubuntu 24.04) for best performance. Access your project via \\wsl$\Ubuntu-24.04\home\youruser\opencart from Windows Explorer if needed. Without WSL 2, file system performance will be extremely slow, making the application nearly unusable. Docker Desktop will typically prompt you to enable WSL 2 during installation., (*13)

[!NOTE], (*14)

OpenCart itself does not use any .env file for its configuration. The provided .env.docker file is only for configuring the Docker Compose environment. To avoid confusion with classic development workflows, this file is named .env.docker and placed inside the docker directory., (*15)

Getting Started

  1. Clone the repository to your local machine.
  2. Initialize the project: bash make init
  3. Build the images: bash make build
  4. Start all services: bash make up

After the process is complete, your OpenCart store will be available at http://localhost., (*16)

Common Commands

  • To stop the environment: bash make down
  • To view the logs from all services: bash make logs
  • To enter the PHP container: bash make php
  • To see all available commands: bash make help

Changing the PHP Version

The environment uses PHP 8.4 by default. You can easily switch to a different version by editing the PHP_VERSION variable in the docker/.env.docker file., (*17)

For example, to use PHP 8.2, open docker/.env.docker and set:, (*18)

PHP_VERSION=8.2

After changing the version, rebuild the images:, (*19)

make build

Using Docker Compose Profiles for Optional Services

By default, only the core services (apache, php, mysql) are started. Optional services such as Adminer, Redis, Memcached, and PostgreSQL can be enabled using Docker Compose profiles., (*20)

To enable one or more optional services, use the --profile flag and specify your env file:, (*21)

  • Start with Adminer: bash make up profiles="adminer"
  • Start with Redis and Memcached: bash make up profiles="redis memcached"
  • Start all optional services: bash make up profiles="adminer redis memcached postgres"

[!TIP], (*22)

You can combine any profiles as needed for your development workflow., (*23)

Versioning

The version is broken down into 4 points e.g 1.2.3.4 We use MAJOR.MINOR.FEATURE.PATCH to describe the version numbers., (*24)

A MAJOR is very rare, it would only be considered if the source was effectively re-written or a clean break was desired for other reasons. This increment would likely break most 3rd party modules., (*25)

A MINOR is when there are significant changes that affect core structures. This increment would likely break some 3rd party modules., (*26)

A FEATURE version is when new extensions or features are added (such as a payment gateway, shipping module etc). Updating a feature version is at a low risk of breaking 3rd party modules., (*27)

A PATCH version is when a fix is added, it should be considered safe to update patch versions e.g 1.2.3.4 to 1.2.3.5, (*28)

Releases

OpenCart will announce to developers 1 week prior to public release of FEATURE versions, this is to allow for testing of their own modules for compatibility. For bigger releases (ones that contain many core changes, features and fixes) an extended period will be considered following an announced release candidate (RC). Patch versions (which are considered safe to update with) may have a significantly reduced developer release period., (*29)

The master branch will always contain an "_rc" postfix of the next intended version. The next "_rc" version may change at any time., (*30)

Developer release source code will not change once tagged., (*31)

If a bug is found in an announced developer release that is significant (such as a major feature is broken) then the release will be pulled. A patch version will be issued to replace it, depending on the severity of the patch an extended testing period may be announced. If the developer release version was never made public then the preceding patch version tag will be removed., (*32)

To receive developer notifications about release information, sign up to the newsletter on the OpenCart website - located in the footer. Then choose the developer news option., (*33)

License

GNU General Public License version 3 (GPLv3), (*34)

The Versions

06/03 2018

1.5.6.1

1.5.6.1

  Sources   Download

06/03 2018

1.5.6.2

1.5.6.2

  Sources   Download

06/03 2018

2.0.3.1

2.0.3.1

  Sources   Download

06/03 2018

2.1.0.0

2.1.0.0

  Sources   Download

06/03 2018

1.5.5.1

1.5.5.1

  Sources   Download

06/03 2018

1.5.6

1.5.6.0

  Sources   Download

06/03 2018

2.0.2.0

2.0.2.0

  Sources   Download

06/03 2018

2.0.3.0

2.0.3.0

  Sources   Download

06/03 2018

2.0.0.0b2

2.0.0.0-beta2

  Sources   Download

06/03 2018

2.0.0.0b3

2.0.0.0-beta3

  Sources   Download

06/03 2018

2.0.1.0

2.0.1.0

  Sources   Download

06/03 2018

2.0.1.1

2.0.1.1

  Sources   Download

06/03 2018

2.0.0.0a2

2.0.0.0-alpha2

  Sources   Download

06/03 2018

2.0.0.0a3

2.0.0.0-alpha3

  Sources   Download

06/03 2018

2.0.0.0a4

2.0.0.0-alpha4

  Sources   Download

06/03 2018

2.0.0.0b1

2.0.0.0-beta1

  Sources   Download

06/03 2018

1.5.6.4

1.5.6.4

  Sources   Download

06/03 2018

2.0.0.0

2.0.0.0

  Sources   Download

06/03 2018

2.0.0.0a1

2.0.0.0-alpha1

  Sources   Download

06/03 2018

2.1.0.2

2.1.0.2

  Sources   Download

06/03 2018

1.5.6.3

1.5.6.3

  Sources   Download

06/03 2018

2.1.0.0_rc1

2.1.0.0-RC1

  Sources   Download

06/03 2018

2.1.0.1

2.1.0.1

  Sources   Download

27/11 2017

2.3.x-dev

2.3.9999999.9999999-dev http://www.opencart.com

OpenCart

  Sources   Download

GPL-3.0+

The Requires

 

framework ecommerce opensource opencart

06/06 2017

dev-revert-5471-patch-18

dev-revert-5471-patch-18 http://www.opencart.com

OpenCart

  Sources   Download

GPL-3.0+

The Requires

 

framework ecommerce opensource opencart

06/06 2017

dev-revert-4530-patch-26

dev-revert-4530-patch-26 http://www.opencart.com

OpenCart

  Sources   Download

GPL-3.0+

The Requires

 

framework ecommerce opensource opencart

06/06 2017

dev-revert-4529-patch-25

dev-revert-4529-patch-25 http://www.opencart.com

OpenCart

  Sources   Download

GPL-3.0+

The Requires

 

framework ecommerce opensource opencart

04/04 2017
21/03 2017

dev-dev-paypal-updates

dev-dev-paypal-updates http://www.opencart.com

OpenCart

  Sources   Download

GPL-3.0+

The Requires

 

framework ecommerce opensource opencart

09/03 2017

dev-revert-5259-patch-15

dev-revert-5259-patch-15 http://www.opencart.com

OpenCart

  Sources   Download

GPL-3.0+

The Requires

 

framework ecommerce opensource opencart

06/03 2017

dev-revert-5234-dev

dev-revert-5234-dev http://www.opencart.com

OpenCart

  Sources   Download

GPL-3.0+

The Requires

 

framework ecommerce opensource opencart

02/11 2016

dev-revert-4710-patch-1

dev-revert-4710-patch-1 http://www.opencart.com

OpenCart

  Sources   Download

GPL-3.0+

The Requires

 

framework ecommerce opensource opencart

21/07 2016

dev-master-pre-rollback

dev-master-pre-rollback http://www.opencart.com

OpenCart

  Sources   Download

GPL-3.0+

The Requires

 

framework ecommerce opensource opencart

05/07 2016
02/03 2016

2.2.0.0

2.2.0.0 http://www.opencart.com

OpenCart

  Sources   Download

GPL-3.0+

The Requires

 

framework ecommerce opensource opencart

16/02 2016

2.2.0.0_b1

2.2.0.0-beta1 http://www.opencart.com

OpenCart

  Sources   Download

GPL-3.0+

The Requires

 

framework ecommerce opensource opencart

22/01 2016

2.2.0.0_a1

2.2.0.0-alpha1 http://www.opencart.com

OpenCart

  Sources   Download

GPL-3.0+

The Requires

 

framework ecommerce opensource opencart