• Resolved wekekaha

    (@wekekaha)


    now and then, I make out of stock products into draft copy. I leave a few out of stock items to show popularity. What I am wondering is: If a customer is online and adds a certain product to their cart. What if I am logged in at the same time, and see products out of stock. If I select the same product that they just added to the cart. What happens? Does the product get removed their cart ? Then after the plugin time expires will the stock quantity increase ?

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

    (@jamesgol)

    I’m not really following you.

    A customer won’t be able to add an item to their cart that is out of stock or ‘draft’..

    What do you mean by ‘If I select the same product they just added to the cart”?

    Thread Starter wekekaha

    (@wekekaha)

    How does the plugin work. If a product only has 1 quantity and the customer adds it to their cart. In product list in dashboard, will it show that its out of stock? Even though the customer might not have checked out yet? Thats what I am wondering.

    Cause if they have stock in their cart for 2 hours say and I logged in and see all this stock is out of stock in product list and then I change some of the stock to “Draft” to clean up the shop page. Will that take the product out of their cart? Then will show quantity of 1 later on.

    Plugin Author James Golovich

    (@jamesgol)

    The backend should always be showing the real quantity, though it’s possible that something has changed with WooCommerce to change that. With some of the changes in the development version it will be very easy to add another column to display the quantity of items that are in users carts.

    The way it would work in your situation is that the item would not be removed from the cart until they hit a cart or checkout page which verifies the actual quantity is still available.

    I’m not sure why you aren’t using the WooCommerce feature to hide out of stock items.

    Thread Starter wekekaha

    (@wekekaha)

    Hi James, We sell wholesale to retail customers and we like having a few products sold out visible as it causes panic buying, the feeling that they will miss out etc.

    It would be great if I could log into the admin dashboard and see a list of products per user that is currently in thier cart.

    A email feature to email a registered user that their cart is about to expire could be a nice addition.

    Thank you very much for this plugin. I am happy to donate money to your coffee fund?? Let me know your paypal address.

    • This reply was modified 7 years, 1 month ago by wekekaha.
    Plugin Author James Golovich

    (@jamesgol)

    First off there is a link on the plugin page to donate.

    As I have free time I’ve been working on making the additional information available, not sure when it’ll be available but should be soon.

    I always prefer to have a technology based solution rather than manually updating products or individual items. If I had a setup like yours and I always wanted certain products to always show in the catalog whether they were in stock or not I’d use the ‘woocommerce_product_is_visible’ filter and then add a specific meta tag to each product that should always be checked.

    This code added to your child themes functions.php or other persistent location should do this. Untested but it should work. With this code you would set the ‘jmg_override_visibility’ meta on specific products you would always want visible.

    add_filter( 'woocommerce_product_is_visible', 'jmg_woocommerce_product_is_visible', 10, 2 );
    
    function jmg_woocommerce_product_is_visible( $visible, $id ) {
      $override_visibility = get_post_meta( $id, 'jmg_override_visibility', true );
      if ( !empty( $override_visibility ) ) {
        return true;
      }
      return $visible;
    }
    Thread Starter wekekaha

    (@wekekaha)

    The backend doesn’t show the correct quantity like mention above. If a customer adds it to their cart and there is only one left. When I look in the backend, the quantity is zero even before they checkout.. Just for your information.

    Plugin Author James Golovich

    (@jamesgol)

    Thanks for letting me know, going to have to add yet another workaround for a WooCommerce 3.x change.

    Thread Starter wekekaha

    (@wekekaha)

    Hi James,

    Is it possible for your plugin in the future to remove stock from shop page when its added to someones cart? Of course only when there is zero left as they are all in the persons cart.

    In dashboard, would be cool to see the registered users are logged in and what they have in their cart.

    Also an email feature, when products are about to expire. The user gets an email notification.

    Plugin Author James Golovich

    (@jamesgol)

    It is possible to implement all of those things, though I do not know if or when they will be implemented.

    If you have WooCommerce hide out of stock items it should already hide products that are unavailable. If you wanted to have certain items always show even if they are out of stock I already offered a possibility on how to do that above.

    Thread Starter wekekaha

    (@wekekaha)

    Hi James, Some more user feedback.

    Not sure if its just last week or in general this is happening to us. But we just did a stock take and found 10 different individual items with different stock quantities that what the website is showing.

    Plugin is reducing stock numbers but not replenishing the quantity when the cart expires or we did have the website crash when we had 6 customers shopping at the same time.

    Plugin Author James Golovich

    (@jamesgol)

    If the plugin is running it will always mark the expiration time when an item is added to the cart. Any item that has an expiration time will be expired. So the only way the items don’t expire is that they were added to the cart when this plugin wasn’t running or configured properly.

    Thread Starter wekekaha

    (@wekekaha)

    okay, we are just dumb founded as about 40 products in total not on the website when they still should be. The product in woocommerce is showing sold out. Many product lines showing out of stock and there would be 4 products still on the shelve..

    Plugin Author James Golovich

    (@jamesgol)

    If you do a database dump of the sessions table I could take a quick look at it to see if there is anything obvious going on.

    Thread Starter wekekaha

    (@wekekaha)

    Hi James,

    Just wondering if I can pay you to log into my website as a customer and check out how the add to cart system is working. Have had a programmer work on my website and the way the add to cart system works, is a user can click add to cart and the page stays where it is, allowing the user to just keep adding things to their cart and not loose their position on the page. I am worried that since the pages isn’t refreshing exactly. That your plugin is not being allowed to work properly. As had a new drop of clothing today and have had 3 unhappy customers with products being removed from their cart.
    Receiving messages like this at cart/checkout pages. ” ProductName has been removed from your cart because it can no longer be purchased. Contact us if you need assitance”
    One customer sent a screen shot and had 7 products taken out and had 7 messages like this shown to her.

    Thanks James,

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Temp out of stock, draft product’ is closed to new replies.