Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Spyros Spyriadis 46 posts 70 karma points
    Dec 12, 2014 @ 10:45
    Spyros Spyriadis
    0

    Too many cart objects created

    I have a new Umbraco installation and have too many cart objects created. I have the site running for 2 days and the cart id is "CART-17266". Any ideas? Shouldn't those be cleared if empty after couple of hours?

    I have Umbraco v6.2.4 and Tea Commerce v2.3.2 installed.

    Thank you in advance, Spyros.

  • Anders Burla 2560 posts 8256 karma points
    Dec 12, 2014 @ 14:09
    Anders Burla
    0

    If you dont use the autoCreate = false then an order will be created all the time. So if you have a mini cart and you just use GetCurrentOrder - then everyone that looks at the page will get a cart.
    http://documentation.teacommerce.net/razor-api/order/getcurrentorder/

    Kind regards
    Anders

  • Spyros Spyriadis 46 posts 70 karma points
    Dec 12, 2014 @ 14:35
    Spyros Spyriadis
    0

    Excellent! That was exactly the problem... I simply changed the code at the mini cart to:

    Order order = TC.GetCurrentOrder(storeId,false);
    

    and everything seems to be working fine now!

    Do you know if there is any way to reset the order and cart auto increment number?

  • Anders Burla 2560 posts 8256 karma points
    Dec 12, 2014 @ 14:43
    Anders Burla
    0

    You can change the number in the DB at the store. BUT some payment gateways only want to see the same cart number ones else it will cancel the payment.

  • Spyros Spyriadis 46 posts 70 karma points
    Dec 12, 2014 @ 14:46
    Spyros Spyriadis
    0

    Thanks... I don't have any orders yet! :)

Please Sign in or register to post replies

Write your reply to:

Draft