Skip to content

smartpay-co/ec-cube-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

EC-Cube v4 Example Project

Our official guide(JA) for EC-Cube integration.

Prepare environment

Before getting started with the following steps, please make sure you have met all the requirements provided by the official documentation.

Note: if you are on MacOS, most requirements are usually met by default. However, you might need to install PHP yourself instead of using the one that comes with the OS.

If you use Homebrew:

brew install php@7.4
brew link php@7.4

Clone the project

Once the requirements are met, clone this repo and follow the steps below from the root directory of this project.

Install Composer

Follow the Composer official document to install composer.phar locally:

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"

Install EC-Cube

php composer.phar create-project ec-cube/ec-cube ec-cube "4.2.1" --keep-vcs

If you plan to use EC-Cube 4.0, please use the following command to install it instead:

php composer.phar create-project ec-cube/ec-cube ec-cube "4.0.6" --keep-vcs

Then the next step is to install the Smartpay plugin. There are two ways to do it. The first is via the admin panel. If you choose this way, please skip to the Run the built-in web server section.

The second is to clone the repo into the EC-Cube folder:

Clone Smartpay plugin into the EC-Cube directory

cd ec-cube
git clone https://github.com/smartpay-co/ec-cube app/Plugin/Smartpay

Install and enable Smartpay

./bin/console eccube:plugin:install --code=Smartpay
./bin/console eccube:plugin:enable --code=Smartpay

Run the built-in web server

php -S 127.0.0.1:8000

Open the admin panel

Open the admin panel with the URL:

http://localhost:8000/admin

The default credential is: admin/password

Install Smartpay plugin by the EC-Cube admin panel

If you have installed the Smartpay plugin already. Please skip this step.

To install the Smartpay plugin via the admin panel, you must download and upload the release package to the EC-Cube platform. The released packages are available at:

Download the latest version of the plugin package, then follow the installation section in the doccument(JA) to upload and install it.

Further configurations

Then follow the configuration section in the document (JA) to complete the configuration.

Releases

No releases published

Packages

No packages published