PHP code example of panix / mod-cart

1. Go to this page and download the library: Download panix/mod-cart 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/ */

    

panix / mod-cart example snippets


php composer 

'modules' => [
    'cart' => [
        'class' => 'panix\mod\cart\Module',
        'on orderCreate' => function ($event) {
            //Event after create order "$event->order"
        }
    ],
]

php yii migrate --migrationPath=vendor/panix/mod-cart/migrations