Back to Reports

Manual Order Creation Fails for Variable Products with 'Any...' Attributes

open Dec 9, 2020 PluginWoocommerce

Summary:

When creating a manual order in the WooCommerce admin, the product selection interface does not allow an administrator to select a variation that uses an 'Any...' attribute (e.g., 'Any Duration'). Only variations with specific, pre-defined attribute values are listed as options.

This causes a critical issue when using extensions like WooCommerce Subscriptions, which require all product attribute meta data to be present. If a product with an 'Any...' attribute is added to an order, the customer will encounter an error on the cart page when attempting to pay.

The root cause is that the product selection modal does not provide a way to specify the attribute term for an 'Any...' attribute, effectively making these variations inaccessible during manual order creation.

How to Replicate:

  1. Create a variable product with attributes, setting at least one attribute to use the 'Any...' option (e.g., 'Any Duration').
  2. Create a variation that uses this 'Any...' attribute.
  3. Go to WooCommerce > Orders and create a new manual order.
  4. Click 'Add item(s)' and attempt to search for and add the product variation that uses the 'Any...' attribute.
  5. Observe that the variation does not appear in the list of selectable products; only variations with specific attribute values are available.