I have a problem with embedding an affiliate link in the purchase summary in woocommerce (thankyou page). I need to pass the order number and order amount variables to an external affiliate provider. I found a script from the xlplugins collection ( https://xlplugins.com/docs/nextmove-woocommerce-thank-you-page/how-to/add-custom-javascript-events-thank-page/ ) that helps with such a task, and modified it for my application by embedding an iframe...
Originally asked by foxandbutter on Stack Exchange (stackoverflow) (CC BY-SA 4.0).