• biiissen

    (@biiissen)


    Hi there,

    first of all: Thanks a lot for this light weight plugin that generally does a good job!

    However I’d like to integrate a custom tracking code snippet to the custom “thank you” page, which is not working with the following code:

    add_action('woocommerce_thankyou', 'myFunction', 10, 1);
    
    function myFunction($order_id) {
    ...
    }

    Is there a problem or am I doing sth wrong?

    Thanks in advance for your help!

    Kind regards,
    Laurent

    • This topic was modified 10 months ago by biiissen.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author BinaryCarpenter

    (@bc2018)

    Hi Laurent,

    To add a snippet, I generally use add_filter. Have tried that?

    Thread Starter biiissen

    (@biiissen)

    Hi @bc2018,

    thank you for your quick response!

    I’ve integrated it now with a shortcode on my custom thank you page, which works quite decently too.

    But I’ll give it a try an give you feedback.

    Kind regards,
    Laurent

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Code snippet not being integrated in the Thank you page’ is closed to new replies.