-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
20.4.0 RIV-534 support Enhanced Checkout
- Loading branch information
Travis Bernard
committed
Jun 1, 2021
1 parent
6049b58
commit b368bc9
Showing
5 changed files
with
97 additions
and
8 deletions.
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
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
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,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 | ||
); | ||
} | ||
|
||
} |
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