Found bug with woocommerce module Elementor Pro #19165
Replies: 1 comment
-
Good catch and fix, thank you graphem! It's close to the end of 2024 and this nasty bug has still not been fixed! Bad, Elementor! We had a refund issued via Woo today, then wanted to edit the thank you page in Elementor Pro, which then caused the site to crash. Log entry: Additional context |
Beta Was this translation helpful? Give feedback.
-
Line 1619 of elementor-pro/modules/woocommerce/widgets/purchase-summary.php
Need to include that variable to the query: 'type' => 'shop_order', so it look like this:
$latest_order = wc_get_orders( [
'limit' => 1,
'type' => 'shop_order',
'orderby' => 'date',
'order' => 'DESC',
'return' => 'ids',
] );
Otherwise it crash when the store has refund, as it is getting order refund in the query and different object:
PHP Fatal error: Uncaught Error: Call to undefined method Automattic\WooCommerce\Admin\Overrides\OrderRefund::get_order_key() in /wp-content/plugins/elementor-pro/modules/woocommerce/widgets/purchase-summary.php:1636
Beta Was this translation helpful? Give feedback.
All reactions