Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save EricBusch/1fb57b17ac204289ca7b9b6436bd73de to your computer and use it in GitHub Desktop.
Save EricBusch/1fb57b17ac204289ca7b9b6436bd73de to your computer and use it in GitHub Desktop.
Add the WooCommerce product ID as the Tracking ID in the affiliate URL
@AdmetaK
Copy link

AdmetaK commented Dec 3, 2023

Hi Eric,
My product set breaks when I add this code to a custom WP plugin. It just stops showing products.

Any idea what to do? Is it still up to date with this code?
Best,
Kasper

@EricBusch
Copy link
Author

Hi

Please remove the leading <?php code when you paste the code into your custom plugin.

Hope this helps!

Eric

@AdmetaK
Copy link

AdmetaK commented Dec 4, 2023

Thanks for your answer here as well. I'll reply in our email thread as well.
Best,
Kasper

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment