docker-compose build
docker-compose up -d
docker exec -i test_1_fpm_1 composer install
docker-compose build
docker-compose up -d
docker exec -ti devtest2_fpm_1 /bin/sh
composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
...
Качаются зависимости
...
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
In Request.php line 1830:
syntax error, unexpected ']', expecting ')'
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
Step 14/16 : RUN cd /var/www/project/ && composer install --prefer-source --no-interaction
---> Running in e41ba4e8466f
var_dump(scandir(__DIR__."/.."));
array(25) {
[0]=>
string(1) "."
[1]=>
string(2) ".."
[2]=>
string(13) ".editorconfig"
[3]=>
string(12) ".env.example"
[4]=>
string(14) ".gitattributes"
[5]=>
string(10) ".gitignore"
[6]=>
string(12) ".styleci.yml"
[7]=>
string(3) "app"
[8]=>
string(7) "artisan"
[9]=>
string(9) "bootstrap"
[10]=>
string(13) "composer.json"
[11]=>
string(13) "composer.lock"
[12]=>
string(6) "config"
[13]=>
string(8) "database"
[14]=>
string(17) "package-lock.json"
[15]=>
string(12) "package.json"
[16]=>
string(11) "phpunit.xml"
[17]=>
string(6) "public"
[18]=>
string(9) "readme.md"
[19]=>
string(9) "resources"
[20]=>
string(6) "routes"
[21]=>
string(10) "server.php"
[22]=>
string(7) "storage"
[23]=>
string(5) "tests"
[24]=>
string(14) "webpack.mix.js"
}
require($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/prolog_before.php');
$arEventFields = array(
"EMAIL" => "mypost@gmail.com",
"BCC" => "mypost@yandex.com",
"ACTIVE" => $arContract["ACTIVE"],
"MESSAGE" => "MESSAGE",
"SITE_NAME" => 'testSite.ru',
"SERVER_NAME" => $_SERVER['HTTP_HOST']
);
$event = CEvent::Send("TEST_MAIL_CHECK", "s1", $arEventFields);
print_r($event); // int NNNNN
array (
'MESSAGE' => '',
'NAME' => 'Имя',
'PHONE' => '899999999',
'EMAIL' => 'someemail@email.com',
'CITY' => 'Moscow',
'LINK' => 'http://site.ru?ID=b5ffc356ddf0ca1d73cb654a0c76d206',
'SERVER_NAME' => 'site.ru',
)
<span class="welcome-lead text" style="font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 25px;">Здравствуйте, #NAME# !</span> <br>
<p style="text-align: center;">
</p>
<table align="center">
<tbody>
<tr>
<td style="width: 50%; text-align: center;">
<a href="#LINK#">
Посмотреть оптовые цены на сайте
</a>
</td>
</tr>
</tbody>
</table>
if($type == 'update') {
$basketItems = $basket->getBasketItems();
foreach($basketItems as $item){
if($item->getProductId() == $productId) {
$fields = [
'QUANTITY' => (int) $quantity
];
$item->setFields($fields);
}
}
$basket->save();
}
$basket = \Bitrix\Sale\Basket::loadItemsForFUser(\Bitrix\Sale\Fuser::getId(), $site_id);
$discount = Bitrix\Sale\Discount::loadByBasket($basket);
if($discount): //discount пуст (
$discount->calculate();
$discounts = $discount->getShowPrices();
endif;