PHP code example of white-nl / commerce-picqer
1. Go to this page and download the library: Download white-nl/commerce-picqer 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/ */
white-nl / commerce-picqer example snippets
return [
'*' => [
'components' => [
'log' => function() {
$config = craft\helpers\App::logConfig();
if ($config) {
$config['targets']['commerce-picqer'] = [
'class' => \craft\log\FileTarget::class,
'logFile' => '@storage/logs/commerce-picqer.log',
'categories' => ['commerce-picqer'],
//'levels' => Logger::LEVEL_ERROR | Logger::LEVEL_WARNING,
'logVars' => [],
];
}
return $config ? Craft::createObject($config) : null;
},
]
]
];