question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't update inventory quantity on revamped admin

See original GitHub issue

I feel like this is an important feature and I already mentioned it in the discord. Basically, the 2 ways of editing the inventory quantity of a product/variant don’t work, one of them is not being sent to the server, the other one can’t be modified because of an undefined function prop.

I did some digging in the source code and found this for the latter one: When trying to change the inventory quantity in the new admin in the variants panel, it throws an error in the console onChange is undefined, because in /components/variant-grid/index.js:154 it tries to call a function, that the parent component should have, but in /domain/products/product-form/sections/variants.tsx:40 onChange is not defined as a prop on the VariantGrid component.

I’m creating this issue for people who look at the github issues and who have a better understanding (than me) of gatsby and react to fix this/help me fix this.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
olivermrblcommented, Feb 11, 2022

Well spotted! Should definitely not be there.

It will be removed as part of #327 in which we fix all of the hanging issues w. the variant grid

1reaction
olivermrblcommented, Feb 8, 2022

Thanks for reporting it @Blechlawine!

We are currently working on fixing the variant grid and hope to have a new version out end of week.

Will make sure to ping both here and in Discord, when that’s the case 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changing inventory quantities (Shopify admin)
To adjust multiple variants by the same amount, select the variants you want to edit and click Update quantities. Click Save. The new...
Read more >
Cannot mass update Qty values #32840 - magento/magento2
Use admin backend and head over to Catalog --> Products · Select all products using the selector in a product grid (top left)...
Read more >
Edit Order Quantities not updating in Admin Analytics
I've tried different order statuses and nothing works. How can I get Analytics to update when the order updates? Product inventory updates fine....
Read more >
Access right for "Inventory/User" to update Quantity On ... - Odoo
Hi. User group "Inventory/Administrator" can, via product smart button, update product quantity in field "inventory_quantity".
Read more >
Can't Update Stock Quantity on Single Product in Magento ...
We can see one check box checked "use con-fig settings" under manage stock, it means we are not managing stock of individual product....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found