-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged in feature/NE-37 (pull request #12)
Feature/NE-37 Approved-by: Jose Sinisterra <[email protected]>
- Loading branch information
Showing
10 changed files
with
796 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace Dibs\EasyCheckout\Model; | ||
|
||
use Magento\Framework\UrlInterface; | ||
|
||
class CheckoutConfigProvider implements \Magento\Checkout\Model\ConfigProviderInterface | ||
{ | ||
/** @var UrlInterface */ | ||
protected $_urlBuilder; | ||
|
||
protected $_controllerPath = 'easycheckout/order'; | ||
|
||
public function __construct(UrlInterface $_urlBuilder) | ||
{ | ||
$this->_urlBuilder = $_urlBuilder; | ||
} | ||
|
||
public function getConfig() | ||
{ | ||
$output['saveShippingMethodUrl'] = $this->_urlBuilder->getUrl("{$this->_controllerPath}/SaveShippingMethod"); | ||
|
||
return $output; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?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="Magento\Checkout\Model\CompositeConfigProvider"> | ||
<arguments> | ||
<argument name="configProviders" xsi:type="array"> | ||
<item name="checkout_provider" xsi:type="object">Dibs\EasyCheckout\Model\CheckoutConfigProvider</item> | ||
</argument> | ||
</arguments> | ||
</type> | ||
</config> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.