Skip to content

Commit

Permalink
20.4.0 RIV-534 support Enhanced Checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Bernard committed Jun 1, 2021
1 parent 6049b58 commit b368bc9
Show file tree
Hide file tree
Showing 5 changed files with 97 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG-PUBLIC.MD
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,7 @@ MNB-532 Fix use long zip option
MNB-1058 Fix conditionals and fix issue with whole address printing in street line 1


## 20.4.0 (2021-06-01)
RIV-534 support Enhanced Checkout


4 changes: 4 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,7 @@ MNB-532 Fix use long zip option
MNB-1058 Fix conditionals and fix issue with whole address printing in street line 1


## 20.4.0 (2021-06-01)
RIV-534 support Enhanced Checkout


5 changes: 1 addition & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "shipperhq/module-address-autocomplete",
"description": "ShipperHQ Address Autocomplete Tool",
"type": "magento2-module",
"version": "20.3.3",
"version": "20.4.0",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand All @@ -20,9 +20,6 @@
"support": {
"documentation": "http://docs.shipperhq.com"
},
"require": {
"shipperhq/module-shipper": "^20.0"
},
"autoload": {
"files": [
"src/registration.php"
Expand Down
84 changes: 84 additions & 0 deletions src/Helper/Data.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<?php
/**
*
* ShipperHQ
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Magento to newer
* versions in the future. If you wish to customize Magento for your
* needs please refer to http://www.magentocommerce.com for more information.
*
* Shipper HQ Shipping
*
* @category ShipperHQ
* @package ShipperHQ_Address_Autocomplete
* @copyright Copyright (c) 2021 Zowta LLC (http://www.ShipperHQ.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @author ShipperHQ Team [email protected]
*/
/**
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
*
*/

namespace ShipperHQ\AddressAutocomplete\Helper;


/**
* Shipping data helper
*/
class Data extends \Magento\Framework\App\Helper\AbstractHelper
{

private $storeId;
/**
* @var Mage_Sales_Model_Quote
*/


public function __construct(
\Magento\Framework\App\Helper\Context $context
) {
parent::__construct($context);
}


/**
* Gets a config flag
*
* @param $configField
* @return mixed
*/
public function getConfigFlag($configField)
{
return $this->scopeConfig->isSetFlag($configField, \Magento\Store\Model\ScopeInterface::SCOPE_STORE);
}

/**
* Get Config Value
*
* @param $configField
* @return mixed
*/
public function getConfigValue($configField, $store = null)
{
return $this->scopeConfig->getValue(
$configField,
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$store
);
}

}
8 changes: 4 additions & 4 deletions src/Model/AutocompleteConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@
class AutocompleteConfigProvider implements ConfigProviderInterface
{
/**
* @var \ShipperHQ\Shipper\Helper\Data
* @var \ShipperHQ\AddressAutocomplete\Helper\Data
*/
private $helper;

/**
* @param \ShipperHQ\Shipper\Helper\Data $helper
* @param \ShipperHQ\AddressAutocomplete\Helper\Data $helper
*/
public function __construct(
\ShipperHQ\Shipper\Helper\Data $helper
\ShipperHQ\AddressAutocomplete\Helper\Data $helper
) {

$this->helper = $helper;
}

Expand Down

0 comments on commit b368bc9

Please sign in to comment.