Skip to content

Commit b368bc9

Browse files
author
Travis Bernard
committed
20.4.0 RIV-534 support Enhanced Checkout
1 parent 6049b58 commit b368bc9

File tree

5 files changed

+97
-8
lines changed

5 files changed

+97
-8
lines changed

CHANGELOG-PUBLIC.MD

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,7 @@ MNB-532 Fix use long zip option
5757
MNB-1058 Fix conditionals and fix issue with whole address printing in street line 1
5858

5959

60+
## 20.4.0 (2021-06-01)
61+
RIV-534 support Enhanced Checkout
62+
63+

CHANGELOG.MD

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,7 @@ MNB-532 Fix use long zip option
5757
MNB-1058 Fix conditionals and fix issue with whole address printing in street line 1
5858

5959

60+
## 20.4.0 (2021-06-01)
61+
RIV-534 support Enhanced Checkout
62+
63+

composer.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "shipperhq/module-address-autocomplete",
33
"description": "ShipperHQ Address Autocomplete Tool",
44
"type": "magento2-module",
5-
"version": "20.3.3",
5+
"version": "20.4.0",
66
"license": [
77
"OSL-3.0",
88
"AFL-3.0"
@@ -20,9 +20,6 @@
2020
"support": {
2121
"documentation": "http://docs.shipperhq.com"
2222
},
23-
"require": {
24-
"shipperhq/module-shipper": "^20.0"
25-
},
2623
"autoload": {
2724
"files": [
2825
"src/registration.php"

src/Helper/Data.php

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
<?php
2+
/**
3+
*
4+
* ShipperHQ
5+
*
6+
* NOTICE OF LICENSE
7+
*
8+
* This source file is subject to the Open Software License (OSL 3.0)
9+
* that is bundled with this package in the file LICENSE.txt.
10+
* It is also available through the world-wide-web at this URL:
11+
* http://opensource.org/licenses/osl-3.0.php
12+
* If you did not receive a copy of the license and are unable to
13+
* obtain it through the world-wide-web, please send an email
14+
* to license@magentocommerce.com so we can send you a copy immediately.
15+
*
16+
* DISCLAIMER
17+
*
18+
* Do not edit or add to this file if you wish to upgrade Magento to newer
19+
* versions in the future. If you wish to customize Magento for your
20+
* needs please refer to http://www.magentocommerce.com for more information.
21+
*
22+
* Shipper HQ Shipping
23+
*
24+
* @category ShipperHQ
25+
* @package ShipperHQ_Address_Autocomplete
26+
* @copyright Copyright (c) 2021 Zowta LLC (http://www.ShipperHQ.com)
27+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
28+
* @author ShipperHQ Team sales@shipperhq.com
29+
*/
30+
/**
31+
* Copyright © 2015 Magento. All rights reserved.
32+
* See COPYING.txt for license details.
33+
*
34+
*/
35+
36+
namespace ShipperHQ\AddressAutocomplete\Helper;
37+
38+
39+
/**
40+
* Shipping data helper
41+
*/
42+
class Data extends \Magento\Framework\App\Helper\AbstractHelper
43+
{
44+
45+
private $storeId;
46+
/**
47+
* @var Mage_Sales_Model_Quote
48+
*/
49+
50+
51+
public function __construct(
52+
\Magento\Framework\App\Helper\Context $context
53+
) {
54+
parent::__construct($context);
55+
}
56+
57+
58+
/**
59+
* Gets a config flag
60+
*
61+
* @param $configField
62+
* @return mixed
63+
*/
64+
public function getConfigFlag($configField)
65+
{
66+
return $this->scopeConfig->isSetFlag($configField, \Magento\Store\Model\ScopeInterface::SCOPE_STORE);
67+
}
68+
69+
/**
70+
* Get Config Value
71+
*
72+
* @param $configField
73+
* @return mixed
74+
*/
75+
public function getConfigValue($configField, $store = null)
76+
{
77+
return $this->scopeConfig->getValue(
78+
$configField,
79+
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
80+
$store
81+
);
82+
}
83+
84+
}

src/Model/AutocompleteConfigProvider.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@
3939
class AutocompleteConfigProvider implements ConfigProviderInterface
4040
{
4141
/**
42-
* @var \ShipperHQ\Shipper\Helper\Data
42+
* @var \ShipperHQ\AddressAutocomplete\Helper\Data
4343
*/
4444
private $helper;
4545

4646
/**
47-
* @param \ShipperHQ\Shipper\Helper\Data $helper
47+
* @param \ShipperHQ\AddressAutocomplete\Helper\Data $helper
4848
*/
4949
public function __construct(
50-
\ShipperHQ\Shipper\Helper\Data $helper
50+
\ShipperHQ\AddressAutocomplete\Helper\Data $helper
5151
) {
52-
52+
5353
$this->helper = $helper;
5454
}
5555

0 commit comments

Comments
 (0)