Mewz
Forum Replies Created
-
Note that our plugin doesn’t change the stock levels directly on the product. Only stock levels on your attribute(s) are reduced.
To limit your product availability based on its attribute stock levels, this required the full version. The lite version will reduce your attribute stock levels, but this won’t affect your product’s available stock on the frontend of your site.
Yes you can set a quantity multiplier so that one attribute or variation reduces 1 unit and another one reduces 12 units.
This type of functionality is commonly referred to as “variable stock” in the WooCommerce world.
Please take a look at our demo to see how this work:
Well that’s basically what the full version does. But instead of changing the product stock directly (since product stock and attribute stock can be used simultaneously), the full version overrides product stock on the frontend of your site according to its shared attribute stock, showing product availability as if its stock quantity had been set.
The only limitation currently is if you need to be able to sort the product table by stock value. This isn’t a very common thing to do, but it’s worth pointing out.
You’re welcome. Glad to hear it’s working ??
Hi @amafequefez,
Attribute stock doesn’t change or control how variations or product options work. You’ll need to find a WooCommerce solution for your conditional variations.
WooCommerce will only show product options for the variations that you add to the product, so you could use attributes like Flavor #1, Flavor #2, Flavor #3, with Flavor #3 containing an additional “N/A” term that’s selected as the only option for the 4 BonBons size variation.
Another option is to use a different product for each size. That way the variations don’t need to be conditional.
Managing stock for each flavor of BonBon should be fairly straight forward either way. Please reach out to our premium support once you’ve made your purchase and I’ll be happy to help you get it set up correctly.
WooCommerce never restores stock when deleting an order. You need to issue a refund with the Refund button, or change the order status to Cancelled.
Attribute stock reduces and restores stock at exactly the same points as normal product stock in WooCommerce.
Ok I see. Thanks for providing this info, it’s appreciated ??
Was there an error in the log file? I’d be grateful if you could share it with me.
Thanks for the feedback. I’ll take a look to see if I can find why that plugin is causing an error.
It looks like those requests are returning error 500.
Please go to WooCommerce > Status > Logs, and look for the latest “fatal-errors” log on the top-right.
It sounds like you have a plugin causing an error somewhere, or your site’s REST API isn’t working properly. You’ll need to check your server logs. It’s not an issue with this plugin.
This free version of the plugin is the “lite” version. The “full” version must be purchased from CodeCanyon.
Hi?@mike8040,
We haven’t heard back from you. If you are still experiencing issues or have any new details to add, please feel free to let us know.
Hi there,
Keep in mind that our plugin doesn’t directly change the stock of your products. Instead you’d be moving your stock from being on your products to being on your attributes. This way, products using the same attributes also use the same stock.
In your case you’d just add stock to your date attribute terms (under Products > Attributes) and then add the corresponding date attribute term to each of your $20 products.
You can then disable stock management on your products and variations, since they’ll share the attribute stock values tied to your date attributes.
There is no stock limiting in the Lite version of our plugin. Only the full version allows controlling stock availability on the frontend.
If you only want to trigger a function when stock is reduced to zero from an order, you can do something like this:
add_action('mewz_wcas_order_attribute_stock_updated', function($order, $operation, $changes, $valid_items, $partial) { foreach ($changes as $change) { if ($change['from'] > 0 && $change['to'] <= 0) { $stock = mewz_wcas_get_stock($change['stock_id']); if ($stock->title() === "My Stock Name" || $stock->sku() === "ABC123") { // do something... } } } }, 10, 5);