How to remove a product from WooCoomerce - woocommerce

On our site we are using WooCommerce and the Subscription extension and this is working fine. However, we have recently decided that we are going to remove our subscription service. But what I am concerned about is how to properly remove the subscription setup.
I have manually gone thru and cancelled any active subscriptions so they will no longer be billed. And on a future date (to make sure people have access till the end of their current billing cycle) we plan to completely remove subscriptions.
Would removing the subscriptions extension plugin cause problems? What would be the best method of removing the subscription products (currently I have set the subscription item to out of stock and also set it to private so no more orders can be placed). If I delete the subscription product completely would that affect the sales reports (I am guessing it would as the product would no longer exists).
Also how would deleting a product affect orders where that product was purchased? Would the order just simply show no items (but keep the totals)?
Thanks in advance!

I would delete every subscription product, just go to your woocommerce products and filter by the category you set your subscriptions too and delete them all.
Then on the day which your last sub expires remove the plugin in the normal method.

If you have them as out of stock and private/hidden, that should be good enough until all the subs are finished. I wouldn't remove them as products until at least the last orders are created. If you do, they may not generate.

Related

How Can I keep Selling Out Of Stock Products?

My client has just upgraded to a new POS system that manages stock and overwrites product data on woo/wp, and the client has had trouble with the "manage stock" setting being automatically applied on woo every time she updates a product on the POS system.
the idea of this is the product needs to show as available regardless of what the stock status. ALL products should show 'add to cart and be purchasable REGARDLESS of the stock status. Any idea how can I achieve that?
From the looks of it, this seems like an issue with the POS. I have tested enabling backorders on WooCommerce and was able to backorder products. Please see if you are able to share the code overwriting product data. As this probably shuts off the back order setting again.
My test case>
Product Configuration
Available Backorder
Page when setting is disabled. (what is probably happening to you)
If you are able to share part of the code I will be able to assist you with this issue because by the looks of it this is an issue with custom code and not with WooCommerce itself.
Keep in mind that this does look different from your webshop, as my test server is currently running a default WP theme.

When, precisely, is the stock supposed to be reduced?

I have a WordPress site with a custom template that was not originally made with e-commerce in mind. Now we've added WooCommerce, and, while most stuff is working fine, there's one specific thing that I'm not able to figure out.
We've enabled inventory management under WooCommerce Settings, and individually on some products as well.
But when a product with Stock management enabled is added to a basket, the inventory is not reduced. Not even when the order is completed - the stock is never updated.
Why could this be?

How can I ensure that only one instance of any product in woocommerce is sold?

I've been looking for an answer to this. Client has a woocommerce shop that will only ever have one of each product. What I need to accomplish is that when a product is added to their cart, the item is unavailable for anyone else to add the same product to a cart. I've tried the old plugin but it breaks portions of the front end, I've tried using several similar solutions I've found here, but nothing seems to do the trick. The plugin also made inventory management on the backend a total nightmare.
So, to walk you through, user A adds product A to cart. User B tries to add this product to cart but woocommerce says its sold out currently to user B. User A can checkout with product A or if user A closes the browser, woocommerce waits one minute and then puts product A back in stock so person B can then add product A to their cart.
I've been searching for this and have come up with nothing from here and some company claiming they can but it's done case by case and they want to handcode it aka very expensive to do.
Please, help!
Just an opinion here so maybe I am wrong, but woo commerce uses stock counts in the backend, so if this is set to 1, then there can only ever be one that can go through the checkout process unless cancelled.
The functionality to reduce that stock count to 0 whilst a user has that item in their basket (or just viewing the checkout page) is not feasible as they have not purchased, at that stage it is just showing intent to purchase.
As you mentioned, that functionality is possible, it wouldn't be pretty, but possible and not something that is available by default in the plugin. Development of such functionality would be needed, and you're right probably quite expensive for development time.

Drupal commerce add product to pending order

I have already paid order in commerce (has status pending for example), but i need to add one more product to that order and pay for newly added product. Is there way to do that? If no, how can I solve this other way?
After you have passed the 'check out' page and paid for the products, no matter in what status the order is, you can not alter from admin side -- without hacking it!

Purge open carts in Ubercart

How do you clear out open carts (non completed checkouts) in Ubercart? I don't see a function or admin setting to do this unless I looked in the wrong place.
Example, I just want to clear out carts who have gone around and added things to their cart, but did not complete the order.
uc_cart_empty() will clean the cart according to cart ID.
uc_cart_get_id() will give you the current cart ID.
What you want is to go over all uncompleted carts.
For registered users the cart ID is always the uid of the user.
For anonymous users, if I am not mistaken, the cart has a short lifetime, so no need to do it "manually".
Hope this helps, and in any way, this should be your starting points.
Regards,
Shushu

Resources