Skip to content

Commit

Permalink
Merge pull request #48 from collector-bank/feature-2.4.6-support
Browse files Browse the repository at this point in the history
Added support for 2.4.6
  • Loading branch information
kristoffer124 authored May 3, 2023
2 parents b6be9cd + 6db9807 commit 23ff7da
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
1 change: 1 addition & 0 deletions src/Controller/Validation/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class Index extends \Magento\Framework\App\Action\Action
protected $quoteUpdater;
protected $cartTotalManagement;
protected $configFactory;
protected $shippingMethodManagement;
/**
* Index constructor.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Plugin/AddSubtotalToItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class AddSubtotalToItem
* @var \Magento\Checkout\Helper\Data
*/
protected $checkoutHelper;
protected $checkoutSession;
protected $itemPriceRenderer;

/**
* @param \Magento\Checkout\Model\Session $checkoutSession
Expand Down
2 changes: 2 additions & 0 deletions src/QuoteUpdater.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class QuoteUpdater
protected $session;
protected $customerRepositoryInterface;
protected $quoteHandler;
protected $shippingAssignmentProcessor;
protected $cartExtensionFactory;

public function __construct(
\Magento\Tax\Model\Config $taxConfig,
Expand Down
20 changes: 10 additions & 10 deletions src/view/frontend/web/js/checkout.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,7 @@ define([
}
return storage.post(
self.getUpdateUrl("update", window.checkoutConfig.quoteData.collectorbank_public_id), JSON.stringify(payload), true
).fail(
function (response) {
console.error(response);
}
).success(
).done(
function (response) {
var address = quote.shippingAddress();

Expand All @@ -245,6 +241,10 @@ define([

self.fetchShippingRates();
}
).fail(
function (response) {
console.error(response);
}
);
},
addressUpdated: function(event) {
Expand All @@ -254,11 +254,7 @@ define([

return storage.post(
self.getUpdateUrl(event.type, event.detail), JSON.stringify(payload), true
).fail(
function (response) {
console.error(response);
}
).success(
).done(
function (response) {
var address = quote.shippingAddress();

Expand All @@ -276,6 +272,10 @@ define([
self.fetchShippingRates();
collectorIframe.resume();
}
).fail(
function (response) {
console.error(response);
}
);
},
getCartItems: function() {
Expand Down

0 comments on commit 23ff7da

Please sign in to comment.