# WooCommerce - How to handle Downloadable products

If you need to enable the **Downloadable** option for your WooCommerce product, there are special steps to consider.

By default, when a product is flagged as Virtual and Downloadable, WooCommerce automatically sets the Order Status to Completed when the payment is processed. By doing so, the QLM plugin is notified too late in the process and is not able to properly insert the license key in the order and the email.

There are two possible solutions to circumvent this behaviour:

* Set the product to Downloadable but not Virtual: With this setting, the order is not automatically set to Completed and QLM is able to process the order as expected.
* Set the product to Downloadable and Virtual and use the [WooCommerce Order Status Control](https://woocommerce.com/products/woocommerce-order-status-control/) to modify WooCommerce's default behaviour. Once you install the WooCommerce Order Status Control, change the "Orders to AutoComplete" setting in WooCommerce / Settings / General to "None".


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.soraco.co/docs/3rd-party-integration/woocommerce/woocommerce-how-to-handle-downloadable-products.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
