KevinMcCall
Forum Replies Created
-
Forum: Plugins
In reply to: [Stock Dependencies for WooCommerce] Github RepositoryHi, yes I saw the pull requests, thanks! I’ve not had time to review and test yet but I hope to get to it soon.
It’s this one that’s causing the problem:
option_name _transient_sdwc-product-settings-2027option_value {“enabled”:true,”stock_dependency”:[{“sku”:”lamsilverblack600400″,”qty”:””,”product_id”:790}]}
It got saved with no value for the dependency quantity (”qty”:””). I’m working on a plugin update that will allow you to clear the plugin’s transients, but in the meantime can you clear that one or all of your DB transients?
Do you have a plugin for clearing transients from your DB? You can use something like Transients Manager By WPBeginner
Can you share with me the output from this query:
SELECT option_name, option_value FROM wp_options WHERE option_name LIKE '_transient_sdwc-product-settings%' ORDER BY option_name;
There’s only one row? You mentioned a dependency was added for another product.
Do you have access to run a query against your database? If so, can you run the following and post the results?
select * from wp_postmeta where meta_key = '_stock_dependency';
What is the inventory available for the product or variation on which there is a dependency?
Are you using any inventory management plugins?
Can you take a look at the stock dependency that you created for the product that is having the error? Specifically, can you make sure that you have a valid integer value in the quantity field of the stock dependency?
Forum: Plugins
In reply to: [Stock Dependencies for WooCommerce] WordPress reports E_ERRORAre you still having an issue?
Awesome, thanks for the update!
Forum: Plugins
In reply to: [Stock Dependencies for WooCommerce] Compatibility with HPOSHi, I just released v1.6 that is compatible with HPOS.
Can you try the plugin update v1.6 I just released and let me know if this is still a problem?
Forum: Plugins
In reply to: [Stock Dependencies for WooCommerce] Stocks have to be numeric?Yes, this is working as intended. For the plugin to be able to calculate the inventory available for a product (or variation) based on the inventory of its dependencies, those dependencies must have a numeric stock value.
In your case, if you have a product that you mark as “In Stock” does that mean you have unlimited supply or that you are not worried about having inventory on hand to fulfill the order?
Forum: Plugins
In reply to: [Stock Dependencies for WooCommerce] Compatibility with HPOSI currently have no plans to support HPOS but will consider it for future development
Forum: Plugins
In reply to: [Stock Dependencies for WooCommerce] WordPress reports E_ERRORWhat version of WordPress and WooCommerce?
Forum: Plugins
In reply to: [Stock Dependencies for WooCommerce] SKU resets to 0This is working as intended. When you create a stock dependency for a product, the inventory will be calculated based only on the inventory of the stock dependency, so the plugin sets the inventory field value to 0 and makes it read-only