Manual order from back office gives error for certain customers



  • With certain customers, and I haven’t been able to figure out which, I’m unable to place a manual back office order. I get this error message when I select any product:

    An order has already been placed with this cart.
    This product cannot be added to the cart.
    

    Does anyone have an idea how to troubleshoot the issue?



  • @30knees I had this too! 😮 Thought this is some issue here… Are you using multistore?

    I noticed, that it’s working if you try a second time…



  • @wakabayashi Thanks for confirming!

    Multistore is active, but I only have one store.

    I’ve tried to create the order multiple times and it still doesn’t work. I’ve also cleared out any unordered carts, etc.



  • @30knees you are right. I messed up the errors. But I really have had this too. I checked now my files and I used a very dirty hack.

    I changed in AdminCartsController.php the function ajaxProcessUpdateQty()

    if ($this->context->cart->OrderExists() && 1==2) {
    

    This is no solution of course. It just skipps the the condition. We should understand from where it comes. Since when do you have this? Does it appear when you don’t use multistore?



  • Which version are you using?



  • @wakabayashi I’m using 1.0.3. I’ll test turning off multistore and also your hack and write again. Thanks! 🙂



  • @wakabayashi I turned off multistore but get the same error message.

    Your hack works perfectly, though! Thank you!



  • @wakabayashi I just noticed that while the hack fixes the problem on the order creation page, it pushes it further down the line for the first order attempt. Now the error pops up on the next page after clicking “Create the order”. But, when I tried a second time, like you wrote above, the order went through.

    Might there be another spot where some code needs to be edited?


 

Looks like your connection to thirty bees forum was lost, please wait while we try to reconnect.