Tickets / BUG-111
Released High BUG · OPENED 22 OCT 2026 · 11 REPLIES

Bulk Action not changing "Hide when out of Stock"

SF Stephen Fuller · teclan Ltd
Public
Log in to upvote, comment, or submit your own tickets.
1. Select products in the admin product listings page 2. Choose Manage status & visibility bulk action 3. Change Hide when out of Stock option on both Product and Variant level. 4. Click Run 5. Worker queue runs trhough the bulk action. Expected result: Hide when out of Stock status changed on products. Actual Result: Status remains unchanged.
CP
Callum Payne Aero 11D AGO

Just tried this locally and it seems to be working fine. Are you running the latest package versions?

SF
11D AGO Stephen Fuller

When inspecting the product admin page the checkbox for hide when out of stock is ticked despite this value in the database for both procuct and variant being false. I think the issue is that the value on the page is being passed as a string and JavaScript treats the non-empty string "0" as truthy, checkboxChecked: true variantValue: "0" ← string, not boolean variantType: "string" productValue: false

SF
11D AGO Stephen Fuller

Currently running core 0.61.0 and admin 1.63.0

SF
11D AGO Stephen Fuller

Setting the variant value in the database to null removes the tick on the admin page.

CP
Callum Payne Aero 11D AGO

So the bulk action is working fine for you? I'm not following with the checkbox stuff as the variant has a dropdown and not a checkbox? I've just tried changing the values for the product and variant and saving in different combinations and everything seems fine locally. Got any steps to replicate or any pictures/videos of what you mean?

SF
11D AGO Stephen Fuller

Sorry I think the bulk action was a red herring, looks like it was infact updating however with the variants value being set to 0 the product page was stuck with this option ticked in the interface.

SF
11D AGO Stephen Fuller

For single products it looks like the variant value is overriding the product value.

SF
11D AGO Stephen Fuller

So if you run the bulk action against single prodcuts and set variants Hide when out of Stock to be false then check a single product.

CP
Callum Payne Aero 11D AGO

I'm not too sure this is a bug because even simple products have a variant behind the scenes, that does take priority for things like this. I would suggest using the "type" filter for simple products if you'd wish to target specifically simple products with any bulk action

SF
11D AGO Stephen Fuller

Are you able to replicate the problem with a single product where the variant Hide when out of Stock value is set to 0 in the database resulting in the product showing the hide when out of stock value being ticked?

CP
Callum Payne Aero 10D AGO

Sorry for not following, I was too focused on the bulk action. I can see now that when the product db value is true but the variant db value is false it remains ticked as it's a string. I've released a fix for this. Thanks for finding and helping to fix this

Log in to join the discussion.