order-received page is empty
-
If I activate the option “Track enhanced e-commerce” for the woocommerce integration, my ordereceivedpage renders only the “thank-you-text” and no order data any more. There is unfortunately no php error in the debug-logs.
So I tried to debug the reason for it and I found out, that when I comment out the following code in your plugin (woocommerce.php Lines 483 to 487) the Error is gone and the page renders like it should.
*************** commented out codesnippet *************** $order_id_filtered = apply_filters( 'woocommerce_thankyou_order_id', $order_id ); if ( '' != $order_id_filtered ) { $order_id = $order_id_filtered; } *********************************************************
I checked the variables “$order_id” and “$order_id_filtered” an the values were correct (reflecting my order: /checkout/order-received/4958/?key=wc_order_7WU6voxO44bSK ).
It seems like that
apply_filters( 'woocommerce_thankyou_order_id', $order_id );
leads to somehow overwriting the order-variable that is needed for rendering the order-received-page. (just an assumption)
- The topic ‘order-received page is empty’ is closed to new replies.