Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New woocommerce_product_get_stock_quantity filter causes error on backend product page #134

Closed
jeroendk opened this issue Sep 3, 2022 · 1 comment · May be fixed by #135
Closed

New woocommerce_product_get_stock_quantity filter causes error on backend product page #134

jeroendk opened this issue Sep 3, 2022 · 1 comment · May be fixed by #135

Comments

@jeroendk
Copy link

jeroendk commented Sep 3, 2022

$selected_stock_location_id = WC()->session->get('stock_location_selected');

throws an error because the WC Session is not available on the admin page.

@fahadmahmood8
Copy link
Owner

Thank you, I have released another version with this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants