Skip to content

Commit

Permalink
Update references to Hyvä Checkout (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsesini-avery authored Dec 17, 2024
1 parent c7af469 commit 7e676e4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Block/Adminhtml/Form/Field/Checkouts.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@

namespace Elgentos\HyvaCheckoutABTest\Block\Adminhtml\Form\Field;

use Hyva\CheckoutCore\Block\Adminhtml\Element\FieldArray\TypeRenderer;
use Hyva\Checkout\Block\Adminhtml\Element\FieldArray\TypeRenderer;
use Magento\Backend\Block\Template\Context;
use \Magento\Config\Block\System\Config\Form\Field\FieldArray\AbstractFieldArray;
use Magento\Framework\View\Helper\SecureHtmlRenderer;

class Checkouts extends AbstractFieldArray
{
private \Magento\Framework\View\Element\BlockFactory $blockFactory;
private \Hyva\CheckoutCore\Model\Config\Source\Checkout $checkoutSource;
private \Hyva\Checkout\Model\Config\Source\Checkout $checkoutSource;

public function __construct(
Context $context,
\Magento\Framework\View\Element\BlockFactory $blockFactory,
\Hyva\CheckoutCore\Model\Config\Source\Checkout $checkoutSource,
\Hyva\Checkout\Model\Config\Source\Checkout $checkoutSource,
array $data = [],
?SecureHtmlRenderer $secureRenderer = null
) {
Expand Down
4 changes: 2 additions & 2 deletions Plugin/PickRandomCheckout.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Elgentos\HyvaCheckoutABTest\Plugin;

use Exception;
use Hyva\CheckoutCore\Model\CheckoutInformation\Luma;
use Hyva\CheckoutCore\Model\Config;
use Hyva\Checkout\Model\CheckoutInformation\Luma;
use Hyva\Checkout\Model\Config;
use Magento\Checkout\Model\Session as CheckoutSession;
use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\Framework\App\State;
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"require": {
"php": "^8.1",
"magento/framework": "*",
"hyva-themes/checkout-core": "*"
"hyva-themes/magento2-hyva-checkout": "*"
},
"suggest": {
"degdigital/magento2-customreports": "Useful to check A/B test results in the Magento admin"
Expand Down
2 changes: 1 addition & 1 deletion etc/frontend/di.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="Hyva\CheckoutCore\Model\Config">
<type name="Hyva\Checkout\Model\Config">
<plugin name="PickRandomCheckout"
type="Elgentos\HyvaCheckoutABTest\Plugin\PickRandomCheckout"/>
</type>
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Elgentos_HyvaCheckoutABTest">
<sequence>
<module name="Hyva_CheckoutCore"/>
<module name="Hyva_Checkout"/>
</sequence>
</module>
</config>

0 comments on commit 7e676e4

Please sign in to comment.