This is a repository that contains scripts to easily install open source e-commerce builders with mercadopago on a Docker environment. Supported platforms:
- Opencart;
- Prestashop;
- Woocommerce;
- Magento 1.x;
- Magento 2.x;
For all platforms, change scripts/{platform}/configs
file to setup the variables that will be used on your environment accordingly to the platform and versions that you want to install. Where platform is the platform that you want to install.
To install Opencart with Mercado Pago cart run:
./mercadopago install opencart
Open a browser and go to localhost
. Follow the installation steps.
Continue on steps 1 and 2.
Step 3: 1st form:
Field | Data |
---|---|
DB Driver | MySQLi |
Hostname | db |
Username | opencartuser |
Password | opencartpass |
Database | opencartdb |
Port | 3306 |
Prefix | oc_ |
2nd form:
Field | Data |
---|---|
Username | admin |
Password | admin |
[email protected] |
You can change any of those data if you want. If you've changed scripts/configs
use the same data that you used on mysql_user
, mysql_password
, mysql_database
on the fields from the 1st form.
After finish the installation remove the install folder from your container. You can ./mercadopago wrapup opencart
to do so.
Now you are ready to configure MercadoPago module. Just follow the Setup Mercado Pago session on developers guide for opencart
To install Prestashop with Mercado Pago cart run:
./mercadopago install prestashop
Open a browser and go to localhost
. Follow the instructions on screen.
On System Configuration fill the fields according to the table
Field | Data |
---|---|
Database server address | db |
Database name | prestashopdb |
Database login | prestashopuser |
Database password | prestashoppass |
Tables Prefix | ps_ |
Notice that these credentials are configured on scripts/prestashop/configs
, if you've changed these configs on the file, make sure to configure the same way on System Configuration.
After finishing the installation remove the install folder from your container. You can ./mercadopago wrapup prestashop
to do so.
Now you are ready to configure MercadoPago module. Just follow the Setup Mercado Pago session on developers guide for opencart
To install Woocommerce with Mercado Pago cart run:
./mercadopago install woocommerce
Open a browser and go to localhost
. Follow the installation steps.
Now you are ready to configure MercadoPago module. Just follow the Setup Mercado Pago session on developers guide for opencart
To install Magento with Mercado Pago cart run:
./mercadopago install magento1
To install Magento with Mercado Pago cart run:
./mercadopago install magento2
On this project root there is a file called mercadopago
it is a "CLI" to several commands. All listed commands bellow has the format ./mercadopago <CMD> <ARGS>
.
CMD | ARGS | Description |
---|---|---|
install | <platform name> |
Installs the platform passed as parameter |
init | - | Prepare docker files docker-compose-dev.yml , docker-compose.yml , docker-sync.yml adn Dockerfile according with configurations made on /scripts/configs |
kill | - | Do the same as stop and remove stopped containers and clean up docker-sync |
restart | - | Executes stop followed by start |
shell | <user> (optional) |
Access the apache container via bash inside /var/www/html folder. |
start | - | Starts docker-sync and docker-compose containers without building Dockerfile |
start_build | - | Starts docker-sync and docker-compose containers building Dockerfile |
stop | - | Stops docker-sync and docker-compose containers |
wrapup | <platform name> |
After installing some platforms will need to wrap up the installation. This command do all the job needed after installing it. |