• Most plugins that add marketing tags to the site (like Google Analytics codes, Facebook Pixel, etc) rely on the standard WooCommerce function is_order_received_page()

    When using this plugin, the is_order_received_page() returns false as the user is being redirected to a custom page.

    Please provide a solution in your plugin that can make this function to still return true after redirection.

    https://www.ads-software.com/plugins/wc-custom-thank-you/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Nico

    (@nicolamustone)

    Automattic Happiness Engineer

    Hello,
    I’m sorry but at the moment I can’t provide a fix for this since the function is_order_received_page does not have any filter.

    The function checks this:

    `
    ( is_page( wc_get_page_id( ‘checkout’ ) ) && isset( $wp->query_vars[‘order-received’] ) )
    `

    Even if I add the query var order-received the first check for the page ID will always be false since it’s a different page.

    Unless a filter is added in the core of WooCommerce there’s not much I can do.

    Hi @nicolamustone, I talk with @duracelltomi and he tell me that I have to contact you and then I find this post, so funny, so there aren’t a solution at the moment.

    I’m using your plugins but they are incompatible so what can I do to solve that, where I have to ask? I have to pay something for develop that? I need some answer…

    Let me know something Nicola

    Thanks and best regards

    Thread Starter Thomas Geiger

    (@duracelltomi)

    Just to add more context: I’ve added a new wp filter to the WooCommerce core to support this with your plugin and other plugins:

    https://github.com/woocommerce/woocommerce/pull/13207

    Plugin Author Nico

    (@nicolamustone)

    Automattic Happiness Engineer

    Thanks @duracelltomi!

    @danilinked once the version 2.7 RC is out I’ll test this again and make sure that it works properly with updated templates!

    Thank you @nicolamustone and congratulations for the plugin very useful ??

    I keep waiting for the new version

    Regards,

    @nicolamustone any news?

    Plugin Author Nico

    (@nicolamustone)

    Automattic Happiness Engineer

    Yes @danilinked, I tested this right now and it works properly. I’m working on the next release for WC 2.7.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Current version breaks other WooCommerce plugins’ is closed to new replies.