• 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)

Viewing 1 replies (of 1 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    First of all, sorry for this late answer.
    The latest version of GTM4WP includes a fallback tracking for purchases. If the above lines fail for some reason but the custom thank you page plugin implements the woocommerce_thankyou hook, there is a chance that transaction tracking is going happen.

Viewing 1 replies (of 1 total)
  • The topic ‘order-received page is empty’ is closed to new replies.