init
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Esun\Cart\Plugin\Checkout;
|
||||
|
||||
use Amasty\CheckoutCore\Block\Onepage\LayoutProcessor;
|
||||
|
||||
class SummaryLayoutProcessorPlugin
|
||||
{
|
||||
public function afterProcess(LayoutProcessor $subject, array $jsLayout): array
|
||||
{
|
||||
$sidebar = &$jsLayout['components']['checkout']['children']['sidebar']['children'];
|
||||
|
||||
if (!is_array($sidebar)) {
|
||||
return $jsLayout;
|
||||
}
|
||||
|
||||
$sidebar['esun-cart-services'] = [
|
||||
'component' => 'Esun_Cart/js/view/checkout-services',
|
||||
'sortOrder' => 90
|
||||
];
|
||||
|
||||
return $jsLayout;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user