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.

Feature request: Ability to change the stock quantity unit for a product

See original GitHub issue

Currently it is not possible to change the stock quantity unit for a product once it has been added. I’d like to have a feature for doing that. It would probably need a conversion factor.

Also, here is the current error message in case someone else is also searching for this issue:

Integrity constraint violation: 19 qu_id_stock cannot be changed when the product was once added to stock

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
berrndcommented, Mar 13, 2022

This is now done.

  • When the product was NOT yet added to stock, any stock QU can be selected (like before)
  • When the product was once added to stock, there needs to exist a corresponding unit conversion for the new QU
    • => All stock amounts are converted accordingly based on that factor
    • => The UI only allows to select QUs for “QU stock” where a corresponding conversion exists
    • => The API enforces/checks that a corresponding conversion exists
2reactions
Apecommented, Feb 13, 2021

For me the drop down wasn’t disabled and I got that error log message. I think it is only disabled on the first purchase and not with the inventory action. I’m using version 3.0.1 so this may be something that is already fixed in master.

Is there any way to change the stock QU other than deleting the product and adding everything back with a brand new fixed product? I find that my first decision for the QU wasn’t always the correct one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WooCommerce Inventory Management: How to Do It Right
Stock quantity – Manually set stock numbers. Allow backorders – Allow customers to order products when they're out of stock.
Read more >
Feature Requests - DEAR Support Team
Feature 1: Customisable BOM's that can be easily edited during the pick/pack stage. The part substitute feature right now doesn't really work very...
Read more >
Inventory Management in 2022: Manage and Improve Stock ...
Want to reduce excess stock and be more profitable? Learn how inventory management is helping retail businesses grow and how to apply it ......
Read more >
Wix Stores: Setting How You Manage Inventory for a Product
With Wix Stores, you can manage your inventory in 2 ways: Track your inventory: Track how many of a specific product you have...
Read more >
Managing inventory - Squarespace Help Center
In the Commerce tab, tap the Inventory panel, then tap the product you want to edit. Tap Price to enter a new price....
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