+ Reply to Thread
Results 1 to 8 of 8

Thread: cart timeout and inventory management

  1. #1
    Client
    Join Date
    Nov 2006
    Posts
    16
    Squirrelcart version
    v2.4.1

    cart timeout and inventory management

    I understand (from reading one of the other posts) that when a cart times out the items in the cart will be returned to inventory.

    I also understand that this action does not take place upon the actual timeout, but rather the first time the storefront page is hit after the timeout.

    Question:

    Is there a way to "kick" the process of returning the stock to inventory programatically (say from a cron)?

    We have found that at low traffic periods (and because of our manual cart processing) items can get stuck in an expired cart for quite a while before someone "goes to checkout" and forces the stock refresh.

    Thanks

  2. #2
    Client
    Join Date
    Nov 2006
    Posts
    16
    Squirrelcart version
    v2.4.1

    Question Cart Timeout and Inventory Management

    Sorry to repost this, but I wasn't sure if Jamie reviewed posts that did not show the "question" icon:

    I know that when a cart times out the items in the cart will be returned to inventory.

    BUT, I also understand that this action does not take place upon the actual timeout, but rather the first time the storefront page is hit after the timeout. (Jamie, I think this was something you mentioned in another post)

    Question:

    Is there a way to "kick" the process of returning the stock to inventory programatically (say from a cron), as though someone has visited the index page?

    We have found that at low traffic periods (and because of our manual cart processing) items can get stuck in an expired cart for quite a while before someone "goes to checkout" and forces the stock refresh.

    Thanks

  3. #3
    Client Beery_Asst's Avatar
    Join Date
    Feb 2006
    Location
    Houston, TX
    Posts
    144
    Squirrelcart version
    v3.1.2
    I would also ask the original poster what version of Squirrelcart he was using. There have been some updates to the inventory control system of Squirrelcart and if he hasn't picked those updates up, or he is not using one of the latest versions of Squirrelcart, he may need to update either the whole system or some files.

  4. #4
    Client
    Join Date
    Nov 2006
    Posts
    16
    Squirrelcart version
    v2.4.1

    Cart Timeout and Inventory Management

    We are on 2.6.5. We will be going to 3, but not any time soon.

    Why, does 3 handle the cart timeout differently - no longer requiring that the index page be hit?

  5. #5
    Client Beery_Asst's Avatar
    Join Date
    Feb 2006
    Location
    Houston, TX
    Posts
    144
    Squirrelcart version
    v3.1.2
    Here is one link on the subject:

    http://www.ldev.com/forums/showthrea...entory+timeout

    Seems like there were some other fixes as well that Jamie reported for the V3 series of Squirrelcart with some of the search engine bots going through the webstore.

    With you using 2.6.5, not sure if those fixes applied. I would suggest you look at the bug fixes Jamie has issued if you haven't done so and see if any of them apply to your version of Squirrelcart.

  6. #6
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    5,697
    Squirrelcart version
    v3.2.1
    Sorry to repost this, but I wasn't sure if Jamie reviewed posts that did not show the "question" icon:
    The icon on a thread has no bearing on whether or not I read a post. This is a user to user community that I also participate in. I do not read or reply to all posts.


    I know that when a cart times out the items in the cart will be returned to inventory.

    BUT, I also understand that this action does not take place upon the actual timeout, but rather the first time the storefront page is hit after the timeout. (Jamie, I think this was something you mentioned in another post)
    Correct


    Question:

    Is there a way to "kick" the process of returning the stock to inventory programatically (say from a cron), as though someone has visited the index page?
    If the index page is requested via HTTP, the restock routine will run and will restock all items from carts with expired sessions. If you can write a cron job that will request your storefront page that should happen.


    We have found that at low traffic periods (and because of our manual cart processing) items can get stuck in an expired cart for quite a while before someone "goes to checkout" and forces the stock refresh.
    If the store isn't being accessed, it shouldn't matter how long it takes for items to be restocked unless you are accessing Squirrelcart's stock in the database from some other script.
    Thanks,
    Jamie

    Please rate or review us!
    Hotscripts PHP Resource Index



    It's too bad that whole families have to be torn apart by something as simple as wild dogs. - Jack Handey

  7. #7
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    5,697
    Squirrelcart version
    v3.2.1
    Quote Originally Posted by b_white View Post
    We are on 2.6.5. We will be going to 3, but not any time soon.

    Why, does 3 handle the cart timeout differently - no longer requiring that the index page be hit?
    No. In order to do that, we'd have to require that you setup a cron job.
    Thanks,
    Jamie

    Please rate or review us!
    Hotscripts PHP Resource Index



    It's too bad that whole families have to be torn apart by something as simple as wild dogs. - Jack Handey

  8. #8
    Client
    Join Date
    Nov 2006
    Posts
    16
    Squirrelcart version
    v2.4.1
    Thank you Jamie,

    That's is exactly what I needed. I figured a cron hitting the storefront page would work, but I just wanted to make sure there wasn't a more elegant solution (some function call perhaps).

    The reason this is critical is because this cart is using manual add-to-cart, so the customer doesn't hit the storefront until they go to check out.

    Thanks again

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts