I have a problem with my website where I store unique code as a cookie via JavaScript and retrieve it using PHP on the WooCommerce checkout page on Wordpress.
However