-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from Paazl/release/1.9.3
Release/1.9.3
- Loading branch information
Showing
7 changed files
with
56 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
/** | ||
* Copyright © Magmodules.eu. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Paazl\CheckoutWidget\Model\ResourceModel\QuoteAddress; | ||
|
||
use Magento\Quote\Model\ResourceModel\Quote\Address; | ||
|
||
/** | ||
* Class Resource | ||
*/ | ||
class Resource extends Address | ||
{ | ||
/** | ||
* @param int $quoteId | ||
* @return string | ||
*/ | ||
public function getShippingMethodByQuoteId(int $quoteId) | ||
{ | ||
$connection = $this->getConnection(); | ||
$select = $connection->select()->from( | ||
$this->getTable('quote_address'), | ||
'shipping_method' | ||
)->where('quote_id = :quote_id') | ||
->where('address_type = ?', 'shipping'); | ||
$bind = [':quote_id' => $quoteId]; | ||
return $connection->fetchOne($select, $bind); | ||
} | ||
} |
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
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