• There seems to be an issue with clearing a customer’s cart after their allotted time to purchase has passed. It is correctly setting the item as available for other customers to add to their cart, but the original user’s cart still has the item in it.

    Is the plugin supposed to remove items from a cart when their time to purchase has passed? Or am I misunderstanding that?

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author James Golovich

    (@jamesgol)

    The item will not actually be removed from the cart until the cart is completely removed or the user visits the site again. Though they will not be allowed to purchase the item.

    The reason it does this is so when the user comes back they are notified that the item expired, otherwise they would come back and just have an empty cart.

    Thread Starter cyjosh

    (@cyjosh)

    Hi James,

    Thanks for your reply!

    It turns out that the item doesn’t become available to other customers even when the expired time has passed. Only when the original customer removes the item from their cart does it open it up again for purchase.

    Screenshot of the plugin settings: https://www.dropbox.com/s/fovu10kcs07pcdz/Screen%20Shot%202018-07-05%20at%203.24.48%20PM.jpg?dl=0

    The site does have a pretty outdated version of WooCommerce (2.2.8) and WordPress (4.5.14) – maybe the issue is there?

    Plugin Author James Golovich

    (@jamesgol)

    I suspect it would be related to the old WooCommerce version. I try to keep things backwards compatible but it’s such a moving target that it can be difficult. That’s actually one reason I haven’t released the latest version yet, need to check for more backwards compatibility.

    That being said you could try the development version on github https://github.com/jamesgol/woocommerce-cart-stock-reducer to see if it fixes the issue, though it might be even more broken since there was so much changed with WooCommerce 3.x

    Thread Starter cyjosh

    (@cyjosh)

    Ah gotcha! Yes, definitely understand the challenges there.

    I did try the development version, and it does cause a fatal error, so I stuck with the stable release.

    I’ll see what I can do to get things updated, lots going on with this particular site.

    Thanks!

    Plugin Author James Golovich

    (@jamesgol)

    Any chance you have the fatal error in a log somewhere? I really want to try to make sure any backwards compatibility issues get fixed.

    One of these days I’ll spend some time building out some proper tests so that it can be automatically tested with old and new versions.

    Thread Starter cyjosh

    (@cyjosh)

    I have these showing up in my logs:

    PHP Fatal error: Class 'WC_Session' not found in /nas/content/staging/shopwheeler/wp-content/plugins/woocommerce-cart-stock-reducer-master/includes/class-wc-csr-session.php on line 15

    PHP Fatal error: Call to undefined method WC_Cache_Helper::get_cache_prefix() in /nas/content/staging/shopwheeler/wp-content/plugins/woocommerce-cart-stock-reducer-master/includes/class-wc-csr-sessions.php on line 40

    Hopefully that helps!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Item expire time is working, but does not remove items from original cart’ is closed to new replies.