-
Notifications
You must be signed in to change notification settings - Fork 0
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
Get error in Custom 1-step Checkout #3
Comments
Hi @inelukipg What is around app/code/NWT/KCO/Model/Checkout.php line 582 ? Can you please provide more information about the model. Cheers, |
Hi,
I attached the Checkout.php file. |
Hi @inelukipg The method getQuoteSignature of the extension https://nordicwebteam.se/magento-2-extensions/klarna-checkout-magento-2.html is checking if the quote was manipulated at some point. I have to manipulate the quote in https://github.com/tobias-forkel/Magento2_CustomShipping/blob/master/Model/Carrier/Custom.php via collectRates otherwise I can't implement a custom shipping method. So far as I know, this is the only way. Just google for " magento2 collectRates setPrice ". So you may have to get in touch with the guys from nordicwebteam.se to get more information about getQuoteSignature. You can also simply try to fix it by your own by removing the exception.
Cheers, |
Hi @tobias-forkel |
Hi, |
I'm not sure, but can it have something to do with this? Custom Shipping name could be to long? |
Hi @inelukipg Yeah looks like the shipping method code is too long. I'll test it in 2.1.8 again and change the length if necessary. I'll keep you posted. |
Hi @inelukipg I wasn't able to reproduce it on a clean 2.1.8 setup. However, I will test it without an underscore, as suggested in magento/magento2#5021 I will keep you posted. |
Hi, |
Hi, |
Hi @inelukipg Please use the latest version ( 1.0.0 ) of https://github.com/magenizr/Magenizr_CustomShipping which is exactly the same code. I have removed the "_" from the shipping method name which supposed to fix the issue. Give it a shot with Magenizr_CustomShipping.
If you have any questions, feel free to open a new issue there. |
Hi,
I tried this extension with our one step checkout Klarna (https://nordicwebteam.se/magento-2-extensions/klarna-checkout-magento-2.html)
This is an extension that a lot of stores uses in the nordic countries.
It's a free extension, and you can use it with test credentials.
In exception.log file I get:
[2017-11-28 08:28:32] main.ERROR: Magento\Framework\Exception\LocalizedException: Quote was updated, please review it (check shipping amount, products) in /home/smarthem/www/magento2/app/code/NWT/KCO/Model/Checkout.php:582
The text was updated successfully, but these errors were encountered: