-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create specific helper for ecommerce table #1708 for magento 2.4
- Loading branch information
1 parent
00e39f9
commit 19a9061
Showing
28 changed files
with
483 additions
and
272 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,14 @@ | |
* @copyright Copyright © 2017 Ebizmarts Corp.. All rights reserved. | ||
* @author [email protected] | ||
*/ | ||
|
||
namespace Ebizmarts\MailChimp\Controller\Cart; | ||
|
||
use Magento\Framework\App\Action\Action; | ||
use Magento\Framework\Controller\ResultFactory; | ||
use Magento\Framework\View\Result\PageFactory; | ||
use Magento\Framework\App\Action\Context; | ||
use Ebizmarts\MailChimp\Helper\Sync as SyncHelper; | ||
|
||
class Loadquote extends Action | ||
{ | ||
|
@@ -31,6 +32,10 @@ class Loadquote extends Action | |
* @var \Ebizmarts\MailChimp\Helper\Data | ||
*/ | ||
protected $_helper; | ||
/** | ||
* @var SyncHelper | ||
*/ | ||
private $syncHelper; | ||
/** | ||
* @var \Magento\Framework\Url | ||
*/ | ||
|
@@ -49,13 +54,13 @@ class Loadquote extends Action | |
protected $_checkoutSession; | ||
|
||
/** | ||
* Loadquote constructor. | ||
* @param Context $context | ||
* @param PageFactory $pageFactory | ||
* @param \Magento\Quote\Model\QuoteFactory $quote | ||
* @param \Magento\Customer\Model\Session $customerSession | ||
* @param \Magento\Checkout\Model\Session $checkoutSession | ||
* @param \Ebizmarts\MailChimp\Helper\Data $helper | ||
* @param SyncHelper $syncHelper | ||
* @param \Magento\Framework\Url $urlHelper | ||
* @param \Magento\Customer\Model\Url $customerUrl | ||
*/ | ||
|
@@ -66,14 +71,16 @@ public function __construct( | |
\Magento\Customer\Model\Session $customerSession, | ||
\Magento\Checkout\Model\Session $checkoutSession, | ||
\Ebizmarts\MailChimp\Helper\Data $helper, | ||
SyncHelper $syncHelper, | ||
\Magento\Framework\Url $urlHelper, | ||
\Magento\Customer\Model\Url $customerUrl | ||
) { | ||
|
||
$this->pageFactory = $pageFactory; | ||
$this->_quote = $quote; | ||
$this->_customerSession = $customerSession; | ||
$this->_helper = $helper; | ||
$this->syncHelper = $syncHelper; | ||
$this->_urlHelper = $urlHelper; | ||
$this->_message = $context->getMessageManager(); | ||
$this->_customerUrl = $customerUrl; | ||
|
@@ -99,7 +106,7 @@ public function execute() | |
\Ebizmarts\MailChimp\Helper\Data::XML_MAILCHIMP_STORE, | ||
$magentoStoreId | ||
); | ||
$syncCommerce = $this->_helper->getChimpSyncEcommerce( | ||
$syncCommerce = $this->syncHelper->getChimpSyncEcommerce( | ||
$mailchimpStoreId, | ||
$params['id'], | ||
\Ebizmarts\MailChimp\Helper\Data::IS_QUOTE | ||
|
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.