Variable product stock in Woocommerce - wordpress

We have a Wordpress page, with variable products.
We have 2 different attributes we use for the variables. Rent/buy and Size.
I know I can pick whether i want the stock to be shared between all variations, or specific to all variations.
What I am looking for, is a way to have rent/buy share stock, but not the sizes.
Is there any way this is achievable without creating several products (or if that isn't possible, a product for buy and lease)?
Example: 'Red leather boots'
Rent size 44
Buy size 44
Rent size 45
Buy size 45
Rent size 46
Buy size 46
Whenever someone picks a size 45, i want that one to go down 1 in stock, both the rental and the one you can buy (but not the size 44 or 46).
Looking forward to any input!

This is not possible in WooCommerce, but can be done easily with Attribute Stock for WooCommerce.
Instead of tracking stock at the product/variation level you can track an attribute stock item that is associated with both Rent and Buy. Then, whenever a product with one of these terms is purchased, the stock item will be reduced accordingly.
Disclaimer: This is a plugin that I developed and recently released. Feedback is welcome! 🙂

Related

Make WooCommerce product unpurchasable if price (subtotal) is between X and Y

we are using WooCommerce Product Bundles Plugin to sell a custom box of healthcare products. The plugin allows us to make a minimum and maximum amount of products per bundle. What we now need is to make the product unpurchasable if the price(product_subtotal) is below 34 EUR and above 40 EUR.
Unfortunately i didnt find a solution to use get_product_subtotal() as a trigger for a function. Is there a workaround or something?
Best regards from Germany

Change prices according to quantity and location

I need to change the prices of various articles in WordPress, according to the quantity that is requested, and in the same way that the prices are different depending on where you are buying. For example, buying 1 apple in Mexico costs 5 dlls and buying 5 costs 20 dlls. But buying 1 apple in the US costs 8 dlls and buying 5 costs 36 dlls. Any plug-in or way to do it?
As in the comment above, I solved this with two WP plugins, the first one is Country Based Restrictions which allowed me to create products and decide in which countries they can be seen. The second is Dynamic Pricing With Discount which you can create different prices depending on the number of products

WooCommerce - 1 (One) product in 2 (two) categories with different price

I have two main categories i.e. Buy and Rent, and both having the same products. Now I want to show different prices for the buy category and a different one for the rent category for all products. Is there any way to do that?
You can't set the prices differently in woocommerce for different categories. You really have a few options:
Don't make rent and buy categories. Make them attributes or variations on products and use conditionals.
Use hooks at pretty much every stage of checkout to adjust the pricing based on a cookie or temp variable. This will be a nightmare for reporting.
Make separate products. You can use hooks to update the inventory levels on the sale/rental of the offsetting product if total inventory is an issue.

WooCommerce Different Stock Numbers for Product Variations

Currently have a setup where I want to be able to manage stock on WooCommerce.
So say I have a single product with 3 Variations (small, medium, large). The way the is arranged is the small option dispenses 1 piece, medium 2 pieces, and large 3 pieces of the same product.
Now say I have 100 pieces of inventory stock. When a user buys a size small I want this to deduct 1 piece from the total stock, but when a user buyers the size large, I need this to deduct 3 pieces from the total stock number.
Currently unable to figure out a way to make this happen. Any advance would be greatly appreciated. Thank you!

WooCommerce, sell by weight and by units

I would like to create a grocery store to sell meat and vegetables using the WooCommerce plugin.
My client wants that the visitors would be able to buy products by units (e.g 5 tomatoes) or by weight (e.g 1.5 KG of tomatoes).
It should be applied for all the products or most of them.
I am using the extension Measurement Price Calculator and it works fine cause I achieve to have a "weight" field where customers can enter an amount and it is converted into money.
But I can't find a way to have both options at the same time, weight field and unit field!
It’s possible to do it with the WooCommerce?
How can I achieve that?
Thank you!

Resources