Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
MykolaMalovanets committed Nov 9, 2023
2 parents 97081ff + 7ff4956 commit 0f625b4
Show file tree
Hide file tree
Showing 24 changed files with 79 additions and 824 deletions.
21 changes: 0 additions & 21 deletions Api/Catalog/GetProductsInterface.php

This file was deleted.

30 changes: 0 additions & 30 deletions Api/Data/Catalog/GetProductsResultInterface.php

This file was deleted.

34 changes: 34 additions & 0 deletions Block/System/Config/Form/Field.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php
declare(strict_types=1);

namespace Bold\Checkout\Block\System\Config\Form;

use Magento\Config\Block\System\Config\Form\Field as FormField;
use Magento\Framework\Data\Form\Element\AbstractElement;

/**
* Render field html element in Stores Configuration.
*/
class Field extends FormField
{
/**
* @var bool
*/
protected $unsetScope = false;

/**
* Unset scope element parameters.
*
* @param AbstractElement $element
* @return string
*/
public function render(AbstractElement $element)
{
if ($this->unsetScope) {
$element = clone $element;
$element->unsScope()->unsCanUseWebsiteValue()->unsCanUseDefaultValue();
}

return parent::render($element);
}
}
5 changes: 3 additions & 2 deletions Block/System/Config/Form/Field/Status.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<?php

declare(strict_types=1);

namespace Bold\Checkout\Block\System\Config\Form\Field;

use Bold\Checkout\Block\System\Config\Form\Field;
use Bold\Checkout\Model\BoldIntegration;
use Magento\Backend\Block\Template\Context;
use Magento\Config\Block\System\Config\Form\Field;
use Magento\Config\Model\Config;
use Magento\Framework\Data\Form\Element\AbstractElement;
use Magento\Integration\Model\Integration\Source\Status as SourceStatus;
Expand All @@ -17,6 +16,8 @@
*/
class Status extends Field
{
protected $unsetScope = true;

/**
* @var BoldIntegration
*/
Expand Down
5 changes: 3 additions & 2 deletions Block/System/Config/Form/Field/Version.php
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
<?php

declare(strict_types=1);

namespace Bold\Checkout\Block\System\Config\Form\Field;

use Bold\Checkout\Block\System\Config\Form\Field;
use Bold\Checkout\Model\ModuleVersionProvider;
use Magento\Backend\Block\Template\Context;
use Magento\Config\Block\System\Config\Form\Field;
use Magento\Framework\Data\Form\Element\AbstractElement;

/**
* Bold Integration version field.
*/
class Version extends Field
{
protected $unsetScope = true;

/**
* @var ModuleVersionProvider
*/
Expand Down
174 changes: 0 additions & 174 deletions Model/Catalog/GetProducts.php

This file was deleted.

65 changes: 0 additions & 65 deletions Model/Catalog/GetProducts/Result.php

This file was deleted.

22 changes: 22 additions & 0 deletions Model/GetParallelCheckoutTemplate.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

declare(strict_types=1);

namespace Bold\Checkout\Model;

/**
* Get template for the parallel checkout button.
*/
class GetParallelCheckoutTemplate
{
private const PARALLEL_CHECKOUT_TEMPLATE = 'Bold_Checkout::cart/checkout_button.phtml';

/**
* Get template for the parallel checkout button.
*
* @return string
*/
public function getTemplate(): string {
return self::PARALLEL_CHECKOUT_TEMPLATE;
}
}
Loading

0 comments on commit 0f625b4

Please sign in to comment.