Jump to content
chahidkhan

[SOLVED] Cart cannot be loaded or an order has already been placed using this cart

Recommended Posts

Hi

I just installed my prestashop 1.5.3.1 and i tested an order using check or bankwire i get this error : Cart cannot be loaded or an order has already been placed using this cart !!!

pls help me

 

Thanks

  • Like 1

Share this post


Link to post
Share on other sites

Have you refreshed the order validation page? It usually happens if you do that. When exactly do you get that error?

  • Like 2

Share this post


Link to post
Share on other sites

when i refresh the validation page i get this message : Cart cannot be loaded or an order has already been placed using this cart !!!

 

Thanks

Share this post


Link to post
Share on other sites

Yes, that's what i meant, you can't refresh that page with the same order ID

Share this post


Link to post
Share on other sites

Yes, my question was: when do you get that message?

 

 

Also: with which payment methods? are you using multistore?

  • Like 1

Share this post


Link to post
Share on other sites

I get this message when i order a product using Check module or bank wire module , i'm building a website to buy virtual product no shipping and no multistore .. Thanks

Share this post


Link to post
Share on other sites

Hi Chahid, if you can it would be nice to see a URL in which we could test and see it in person.

 

But I'll let Fabio work his magic. :)

I post the url soon , now i'm working local .. and i will see ur magics both :P

Thanks :)

Share this post


Link to post
Share on other sites

This behavior was during a fresh install on both a live site and local? .. Walk me through the steps.

 

You added a new virtual product? What were the basic specifications of the order (immediately after installation)

Share this post


Link to post
Share on other sites

This behavior was during a fresh install on both a live site and local? .. Walk me through the steps.

 

You added a new virtual product? What were the basic specifications of the order (immediately after installation)

Yes after a fresh installation local and live same problem ,

i'm building a mobile unlocking website via IMEI . so i need customer to enter his mobile phone IMEI with product .

Like in this image :

prestashoperror.jpg

Edited by chahidkhan (see edit history)

Share this post


Link to post
Share on other sites

Hi Chahid, that sounds like a good idea but that does not tell me much.

 

We need to figure out where this error is coming from.

 

I just installed my PrestaShop 1.5.3 locally, now what do I do to reproduce the error, if I can?

  • Like 1

Share this post


Link to post
Share on other sites

Hi

Please a create a product like in this image :

 

prestashoperror.jpg

 

then login with customer account and try to buy this product , write something in IMEI field and click save === add to cart === checkout == choose pay by cheque or bank wire you will see a blank page after refrishing the page u will see that error ..

Thanks

Share this post


Link to post
Share on other sites

Hi Chahid, that did not happen with me. I got to the next page where it says

 

Please send us a cheque with:

 

- an amount of $149.00

 

- payable to the order of ___________

 

- mail to ___________

 

- Do not forget to insert your order reference PKONOERXY.

 

An e-mail has been sent to you with this information.

 

Your order will be sent as soon as we receive your payment.

 

For any questions or for further information, please contact our customer support.

 

This was on a localhost.

 

Did you set the product to be virtual? Because I did not. I also had to choose a shipping carrier, which was "free" that I set up.

Share this post


Link to post
Share on other sites

Yes I set product to virtual and i tested live and local same problem , so i have to set as product not virtual to see if the problem persist ..

Share this post


Link to post
Share on other sites

It seems it works with product but have a problem with virtual product ! Thanks a lot of bro . But I don't want to see "Choose a shipping option for this address " Or " Delivery Method "

 

Thanks again

Share this post


Link to post
Share on other sites

When i create product as virtual i still get the error , but when i create a product then i edit it to virtual i didn't get that error !

Here always i choose No : Does this product have an associated file? No

 

Thank u so much , the problem solved now

Share this post


Link to post
Share on other sites

When i create product as virtual i still get the error , but when i create a product then i edit it to virtual i didn't get that error !

Here always i choose No : Does this product have an associated file? No

 

Thank u so much , the problem solved now

 

I'm getting this same error "Cart cannot be loaded or an order has already been placed using this cart." This error only occurs sometimes in my prestashop version 1.4.7 and I don`t know why. The transaction sometimes end well and others do not and shows the error

 

I've done everything you say in this post and others things I've found on other pages and the problem continues.

 

I don't know what else to do )=

 

Share this post


Link to post
Share on other sites

I'm facing the same problem after a change from php 5.3. to php 5.4. It seems to be an incompatibility Prestashop 1.5.3.1. or cheque module with php 5.4.31. Try to use another php-version , if possible or at least upgrade the bankwire module.

The cart I've added for a customer was a complete new one and not a refreshed. Although you have a blank page, or when debug modus activated the error "Cart cannot be loaded or an order has already been placed using this cart", the order was placed. So it's a cosmetic problem and no order is going to be lost.

  • Like 1

Share this post


Link to post
Share on other sites

Hi, I have the same error on PS 1.6.0.8. I`ve tried to refresh payment modules but nothing happens. Please help me with this error. My site is bejewel.ro

Share this post


Link to post
Share on other sites

hi

 

finally i solved this problem

 

Disable the force enable ssl in perference>general

 

and also set config files

Config.inc file place this line in any where

int_set(memory_limit='125M')

Share this post


Link to post
Share on other sites

hi

 

finally i solved this problem

 

Disable the force enable ssl in perference>general

 

and also set config files

Config.inc file place this line in any where

int_set(memory_limit='125M')

Hi

 

Is this setup also for 1.5, because in 1.6 there isn't force enable ssl in perference>general.

 

Also the code in config.inc is the same?

 

 

This topic is not solved. Does anyone have a solution for this error?

"Cart cannot be loaded or an order has already been placed using this cart"

 

With respect,

Silviu

Edited by shopaccesorii (see edit history)

Share this post


Link to post
Share on other sites

Same problem with version 1.6.0.14. 
I can see this error in the error logs, an the orders relative to this carts do not gaet any Status, and no products. (no ps_order_carrier and ps_order_detail rows are created in the db)

Any help? 

Share this post


Link to post
Share on other sites

I had the same issue on my store. 

Error message when manually adding an order in the back-office: "Cart cannot be loaded or an order has already been placed using this cart". 

Hope this helps!

 

Here are the steps that caused my bug. 

1) Sign in as customer and add any product to cart (do not check out)
2) From the back-office -> Customers -> Shopping carts -> View the abandoned cart and create an order from this cart (order creates successfully) 
3) From Back-office -> Orders -> Create new Order -> Search for the same Customer and try to create a new order
4) The product from the previous order shows up
5) Remove the product from the cart section in the new order page
6) Search for any product and add it
7) Click "Create the Order"
8) Error Message "Cart cannot be loaded or an order has already been placed using this cart"

 

Here's how i fixed it.

/classes/Cart.php

 

    public function orderExists()
    {
        $cache_id = 'Cart::orderExists_'.(int)$this->id;
        if (!Cache::isStored($cache_id)) {
            $result = (bool)Db::getInstance()->getValue('SELECT count(*) FROM `'._DB_PREFIX_.'orders` WHERE `id_cart` = '.(int)$this->id);
            Cache::store($cache_id, $result);
            - return $result;
            + return false;
        }
        return Cache::retrieve($cache_id);
    }

Share this post


Link to post
Share on other sites

Hello,

 

I have tried this fix but unfortunately it has not solved my issue... Any ideas?  Thanks,

Share this post


Link to post
Share on other sites

Hello all,

i Just upgrade to 1.6.1.5 and have this problem with bankwire. It is just easy to solve this problem, i just reset bankwire modul, add my bank account detail again (after i reset that modul, my bank detail dissapear, ofcourse), and the problem solved. try this

Share this post


Link to post
Share on other sites

Hello all,

i Just upgrade to 1.6.1.5 and have this problem with bankwire. It is just easy to solve this problem, i just reset bankwire modul, add my bank account detail again (after i reset that modul, my bank detail dissapear, ofcourse), and the problem solved. try this

 

With Prestashop 1.6.1 I have the bankwire module disabled. Only the Authorize.net module is enabled. The system seems to work, but often in the error log I have this error:

 

"Frontcontroller::init - Cart cannot be loaded or an order has already been placed using this cart"

  • Like 1

Share this post


Link to post
Share on other sites

Tried everything suggested in this topic nothing solved my problem.
after upgrading PHP from 5.3 to 7.0 and upgrading my shop to 1.6.1.16
Can't even change order status to "Waiting Bank Wire Payment"

This topic is long from SOLVED

Edited by Joolivus (see edit history)

Share this post


Link to post
Share on other sites
On 10/21/2017 at 6:08 AM, Joolivus said:

Tried everything suggested in this topic nothing solved my problem.
after upgrading PHP from 5.3 to 7.0 and upgrading my shop to 1.6.1.16
Can't even change order status to "Waiting Bank Wire Payment"

This topic is long from SOLVED

Is your issue the meaningless warning message appearing in the Logs page, or a failed upgrade?  Realize they are unrelated to each

Share this post


Link to post
Share on other sites
1 hour ago, bellini13 said:

Is your issue the meaningless warning message appearing in the Logs page, or a failed upgrade?  Realize they are unrelated to each

Many thanks for your reply and concern.
My issue is related with the warning message.
This wasn't happening 4 months ago but got information from my host provider about php 5.3 no longer get support so decided to upgrade system + prestashop.

When customer pays with paypal they can complete all the steps on purchase, nobody is reporting me issues at all.
But when paying with Bank Transfer, they never get into the last page and receive the confirmation email, although shop registers new order and i get: email with new order + warning message in the logs.

Tried everything explained in this topic by other users, nothing solved my issue.

Share this post


Link to post
Share on other sites

However, as I said, the warning message in the Logs page has nothing to do with your inability to use the bankwire module.

I would suggest you open a separate issue you are having with the bankwire module, and stop referring to the meaningless warning message in the Logs page, it has not bearing on the issue you are having.

Share this post


Link to post
Share on other sites

same problem when createding orders from the backend 1.7.5-1.7.6.1

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

 

It works then after placing a few orders it stops working. I dont know why there is no solution many people seem to have this issue.

I have tried all the selected solutoions above

  • change ssl
  • change php version tried 7.0 7.1 7.2
  • increase memory
  • add code to /classes/Cart.php
  • changed payment methods....
  • upgraded to latest version

 

any one any ideas?

Share this post


Link to post
Share on other sites

nothing in the error logs about this the only errors I get are soem translation errors

Share this post


Link to post
Share on other sites

Would your trouble be a matter of cookie in the browser ?

What happens if :

- you delete the cookie of your site in the browser ?

- or you use the browser in private browsing (Incognito mode)

- or you use another browser 

 

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More