-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quote Attribute trigger_recollect causes a timeout #9580
Comments
We have the EXACT same issue with Magento 2.1.4 that started a couple of days ago, probably due to a composer update! I'm about to try this fix right now! |
This solved our issue! Oh my god! |
@bh-ref Did you create module to fix this issue (I don't have any hopes that Magento will solve this within a year) or do you want me to create one? |
@robbanl I'm glad it helped you! Thanks for the offer, but we have a process were we directly patch the magento core files and note the github issues we open for these patches. If the patches are no longer applicable after a magento update, we either check if the problem was solved or update our github issues to let the magento team know that it still exists in the current version. |
This issue also causes problems with coupon codes:
Expected result: error message is displayed. Disabling a product sets a
|
We have the same problem in a Magento 2.1.9 We have detected 125 carts with this problem. But we have installed the MSP_CashOnDelivery. Do you know if you have fixed this error in 2.1.9? Thanks. |
@bh-ref, thank you for your report. |
Hi @bh-ref. Thank you for your report. The fix will be available with the upcoming 2.2.5 release. |
Hi @bh-ref. Thank you for your report. The fix will be available with the upcoming 2.3.0 release. |
@plastiqman Same issue here with 2.2.2.
finally we come back to For now i fixed it with this code @magento/magespecialist Are you aware of this issue? |
…llect is never unset, at least taxjar won't continuously request the api endpoints
…loyment [Bengals] Functional Tests Mainline Deployment
Preconditions
Steps to reproduce
public function collectRates(RateRequest $request)
.trigger_recollect
to1
(integer) for that quote because of\Magento\Sales\Observer\Backend\CatalogProductSaveAfterObserver::execute()
and\Magento\Sales\Observer\Backend\CatalogPriceRule::execute()
.\Magento\Checkout\Model\Cart::getQuote()
to do some checks.\Magento\Quote\Model\Quote::_afterLoad()
will eventually be triggered, which calls\Magento\Quote\Model\Quote::collectTotals()
if the attributetrigger_recollect
is set to1
.Expected result
trigger_recollect
in a quote should be set to0
(integer) at some time.Actual result
trigger_recollect
in a quote being set to1
, but never back to0
.My patch, which seems to work fine, is:
In
\Magento\Quote\Model\Quote::_afterLoad()
add a reset of the attributetrigger_recollect
after collecting the totals:The text was updated successfully, but these errors were encountered: