-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Can't delete last item in cart if Minimum Order is Enable #6151
Comments
I'm having the exactly same issue with 2.1 |
@wert2all Is there a temporary fix for it? |
Hi, guys. Thanks for reporting this, I've created ticket #MAGETWO-57354 in our internal Jira. This issue will be closed after fix. |
Hi, I experienced the same issue. And even worse, I will get a http 500 error when I add the 3rd item to the cart when the minimum order is enabled. It is Magento 2.1. Bitnami package on AWS. Thanks Rex |
For my ongoing project in Magento 2.1 I have done below things to come out from this problem,
This solved my problem and I got success to delete item. |
magento 2.1.2 traced the problem to vendor/magento/module-quote/Model/ShippingAddressManagement.php#120 commented out that if and it all seams to work fine now. Also InputException takes \Magento\Framework\Phrase for first param but in this class string is used, so 500 error. |
I also got problems with minimum order amount, cannot delet item from cart anymore, but there is no error message, only blank page. I disabled minimum order amount, and everythin works fine. |
For the one who want it, I did a module, based on the solution of @ivankaranjac , which override the function of the original file : mediafire.com |
See magento#6151 for the basics. When minimum order amount is enabled: 1. add 1 product to the cart; total is below min order amount -> no error. 2. Try to remove that product -> error about minimum amount. 3. Try to add more to the cart with total still below min order -> error about minimum amount 4. Add a product that will bring the total cart amount **over** the min order amount and no errors! I will request the Magento team takes a look at this line. I don't understand why the minimum amount is being validated here but perhaps it has something to do with multi-shipping checkouts. However, it botches the min order amount logic badly in it's current form.
Still got that issue in 2.1.4, any updates on that? |
Fatal error happens if sales/minimum_order/description is provided. This is because Magento\Quote\Model\Quote\Validator\MinimumOrderAmount\ValidationMessage::getMessage() returns just this string and not a Phrase object. |
…ng, editing or deleting products from quote
… in QuoteManagement
[EngCom] Public Pull Requests - MAGETWO-69379 use payment method name to make checkbox of agreements more unique #6207 #9717 - MAGETWO-69378 #4272: v2.0.4 Credit memos with adjustment fees cannot be fully refunded with a second credit memo #9715 - MAGETWO-69375 Can't delete last item in cart if Minimum Order is Enable #6151 #9714 - MAGETWO-69230 #7279 bill-to name and ship-to name truncated to 20 chars #9654 - MAGETWO-69155 Fix coding standard in Magento AdminNotification module #9627
Closing as issue is fixed in the |
Reopening, as |
Internal ticket to track issue progress: MAGETWO-69375 |
Internal ticket to track issue progress: MAGETWO-64899 |
Internal ticket to track issue progress: MAGETWO-71761 |
I've updated Magento to version 2.2 the problem is still there |
Simply modify vendor/magento/module-quote/Model/ShippingAddressManagement.php to include the RequestInterface and check to see if the update_cart_action was posted, my code is below and seems to work fine tested on 2.1.8 and 2.2.0 RC3
|
I am having the same issue with 2.1.10. To verify if this was fixed, I setup a clean Magento 2.1.12 instance, and the issue is still there. When updating the QTY: The only way it updates is when the price x qty equals the minimum amount. I commented line 120-122 (as mentioned also by @ivankaranjac ) to get this work:
EDIT: I tried @DavaGordon's solution but that fixes only cart update or clear cart. It does not fix deleting individual items in the cart, adding products from the category/product page, deleting or updating items from the minicart. |
It doesn't look like this is fixed. Will you be re-opening it? |
Bug still present in Magento 2.1.17. Here is the error log:
|
Preconditions
Update magento 2.0.8 to Magento 2.1
Debian Jessie
Mysql 5.6
Php 5.6
Steps to reproduce
Expected result
Actual result
Try to remove the item then we get this error :
Recoverable Error: Argument 1 passed to Magento\Framework\Exception\InputException::__construct() must be an instance of Magento\Framework\Phrase, string given, called in /var/www/clients/client1/web1/web/vendor/magento/module-quote/Model/ShippingAddressManagement.php on line 121 and defined in /var/www/clients/client1/web1/web/vendor/magento/framework/Exception/InputException.php on line 51
If disable Minimum Order Amount then everything is fine.
The text was updated successfully, but these errors were encountered: