Gravity Forms - How to include base product download links when purchasing a product with price variations

Please note: These instructions require the Gravity Forms Checkout extension.

Prior to Version 1.3, if a customer purchased a product with variable pricing and the base product also had a download associated with it, they would receive a link to the base product as well as the variable product they bought. In Version 1.3, this was changed so that customers would only receive a link to the option they purchased.

If you would like to restore this functionality, add this code to your functions.php file: