Magento 2.1 – We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)

Can Magento API be used to pull order data and push inventory into a Magento Website from a Mysql Database?
Custom.css is updating wrong files in Pub/Static

We are having some issues when a customer try to remove the last (one) item from the shopping cart before it becomes empty, the only message that comes up is: We can’t remove the item.

I have no idea why or how to fix it, or at least how to debug it.

Any help is appreciated.


Related Posts

  • Onepage checkout jump back to cart in Firefox (1)
    My Magento has the issue in FireFox , when customers fill their delivery information and click on "continue" it will jump back to cart page. This problem only appears in Firefox. With debug in FireFox, it shows NetworkError: A network error occurred. Anyone has the […]
  • Magento 2.1: how to change customer notification, worming or messages? (2)
    I have limited the number of items allowed in shopping cart to 4. That I've done successfully. however I didn't like the displayed message: The most you may purchase is 4 I want to change it, where/how can I do this?
  • Place order, validates correctly returns to empty shopping cart page (0)
    ive got a weird issue with Magento, we recently applied the SUPEE-7405 patch on 1.6.1 and after this, as soon as you make a payment via the onestepcheckout, it returns to the continue shopping page after the payment has been processed by the gateway provider. This might be quite […]
  • “was added to cart” shows empty AJX message (0)
    Im having an issue with my webpage, I dont know why but the "productname was added to cart" message is missing. Now my ajax message comes up with nothing displayed, only a   displayed in html. Does anyone know why this could have happen, or what files I should look at to fix it?
  • Shopping cart is empty after cancel the payment in magento- (3)
    Shopping cart becomes empty after cancel the payment. i am using IWD onepage checkout. My website is Depoto- /** * @todo remove wishlist observer processAddToCart */ Mage::dispatchEvent('checkout_cart_add_product_complete', […]
  • Remove product from mini cart message Magento 2 (1)
    Where can I find the following message that appears when you remove an item from the mini cart? "Are you sure you would like to remove this item from the shopping cart?"
  • Magento shoping cart getting empty when invalid card details insertes by a Guest Customer (0)
    I have a custom payment method module. Currently I am facing an issue. Issue is when a Guest customer insert invalid card details, shopping cart is getting empty. Can anyone please help me to solve this issue. I am in a tight deadline.
  • Shopping carts appearing empty or showing unexpected items (0)
    I've had a few customers saying that when they try adding items to the cart, the cart then goes empty or shows other items in the cart that they haven't added and I wondered if anyone else has had such issues (using Magento ver. I believe that it may be their previous […]
  • Why I get “Some products are not salable anymore.” (0)
    I have a very strange issue with my magento here. There is a simple product that shows this error message "Some products are not salable anymore." everytime when I try to add it to cart. I suspect that this can be fixed on admin backend. because if this was in a code level. All […]
  • PayPal IPN postback HTTP error: SSL warning (0)
    We are receiving this error message when debugging the IPN from PayPal: PayPal IPN postback HTTP error: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure We have noticed that it may be related to not being updated to the last PayPal changes, as […]
Can Magento API be used to pull order data and push inventory into a Magento Website from a Mysql Database?
Custom.css is updating wrong files in Pub/Static

2 Comments on this article

  • User October 26, 2016

    Do you have minimum orders turned on? There appears to be a bug that matches your problem, which occurs when minimum orders is turned on.


  • User October 26, 2016

    To come up from this problem I have created one simple module to solve this problem.

    1) Create new module. Namespace_ModuleName

    2) Create required registration.php and module.xml file

    3) create di.xml and add following code

       <type name="MagentoQuoteModelQuote">
                <plugin name="min-orderamount-skip-delete" type="NamespaceModuleNameModelQuote" sortOrder="10"/>

    4) Create a class appcodeNamespaceModuleNameModelQuote.php

         * @var RequestInterface
        private $request;
        public function __construct(MagentoFrameworkAppRequestInterface $request)
            $this->request = $request;
        public function afterValidateMinimumAmount()
            $actionName = $this->request->getActionName();
            if($actionName === self::DELETE_ACTION_NAME) {
                return true;

    5) Run bin/magento cache:flush and bin/magento setup:upgrade command from terminal.


Add a comment

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax