We fixed an issue where, when "Show cart button" was set for Action (Non-Matching Conditions), the cart button would be activated even when the target variant was unavailable for sale (out of stock).
Issue
When "Show cart button" was set for Action (Non-Matching Conditions), if the target variant became unavailable for sale (out of stock), the cart button could still be displayed in an activated state and remain clickable.
Before and After the Fix
Before:
- Target variant available for sale → Cart button displayed activated
- Target variant unavailable for sale → Cart button displayed activated (bug)
After:
- Target variant available for sale → Cart button displayed activated
- Target variant unavailable for sale → No action taken on the cart button
After this fix, no action is taken on the cart button when the target variant is unavailable for sale, so the theme's own display for unavailable items (such as disabling the button) is reflected as-is.
Scope of Impact
Pre-order rules with "Show cart button" set for Action (Non-Matching Conditions)
When the target variant is unavailable for sale (out of stock)