codigowww/yii2-ecommerce

Ecommerce for yii2

dev-master 2020-01-07 23:08 UTC

This package is auto-updated.

Last update: 2020-02-07 23:22:17 UTC


README

Ecommerce for yii2

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist codigowww/yii2-ecommerce "*"

or add

"codigowww/yii2-ecommerce": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

    'modules' => [
        'ecommerce' => [
            'class' => 'codigowww\yii2ecommerce\Module',

        ],
    ],

Full config:

    'modules' => [
        'ecommerce' => [
            'class' => 'codigowww\yii2ecommerce\Module',
            'showLogin' => true,
            'controllerMap' => [
                'cart' => 'common\controllers\ecommerce\CartController',
            ],
            'viewPath' => '@common/views/ecommerce'
        ],
    ],

Routes:

/ecommerce/bill /ecommerce/bill/ipn /ecommerce/pay /ecommerce/cart

Make sure acess to routes:

/ecommerce/bill/ipn