PHP code example of skeeks / cms-shop

1. Go to this page and download the library: Download skeeks/cms-shop library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

skeeks / cms-shop example snippets



'components' =>
[
    'admin' => [
        'dashboards'         => [
            'Shop' =>
            [
                'skeeks\cms\shop\dashboards\ReportOrderDashboard'
            ]
        ],
    ],

    'shop' => [
        'class'         => 'skeeks\cms\shop\components\ShopComponent',
    ],

    'i18n' => [
        'translations'  =>
        [
            'skeeks/shop/app' =>
            [
                'class'             => 'yii\i18n\PhpMessageSource',
                'basePath'          => '@skeeks/cms/shop/messages',
                'fileMap' => [
                    'skeeks/shop/app' => 'app.php',
                ],
            ]
        ],
    ],

    'urlManager' => [
        'rules' => [
            '~shop-cart'                             => 'shop/cart',
            '~shop-<_a:(checkout|payment)>'          => 'shop/cart/<_a>',
            '~shop-<_a:(finish)>'                    => 'shop/order/<_a>',
            '~shop-order/<_a>'                       => 'shop/order/<_a>',
        ]
    ],
],

'modules' =>
[
    'shop' => [
        'class'         => 'skeeks\cms\shop\Module',
    ]
]


php composer.phar