codigowww/yii2-ecommerce

Ecommerce for yii2

Installs: 37

Dependents: 0

Suggesters: 0

Type:yii2-extension

dev-master 2019-09-17 07:21 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