Convert more holiday shoppers with express checkout and buy now, pay later. Learn more
Product Icon

Gravity Forms Product Add-ons for WooCommerce

Gravity Forms as WooCommerce product options: live prices, cart editing, shipping from form fields, and one entry per ordered item.

Bugfix – WooCommerce Order Number

Hi

The plugin generates a PHP Fatal Error when an Order no longer exists and you want to generate a CSV export through the Gravity Forms Export Submissions interface.

The issue is quite obvious, the code wants to retrieve an WC_Order, but there is no statement to catch a failure. This results in the fact that $the_order->get_order_number() will fail when $the_order is not a WC_Order.

File: wp-content/plugins/woocommerce-gravityforms-product-addons/inc/gravityforms-product-addons-export.php
Line: 70

Screenshots

Author

stijn.poot

Current Status

Open

Last updated: December 14, 2023

0 comments

Log in to comment on this feature request.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.