I am using PHP to get URL information and pass it as a product variation when I add an item on that page to the cart. For example, a URL would contain a redemption code for a discount on a product (e.g. www.example.com?code=HF325SG). When that product is added to the cart, the discount code HF325SG is listed as a product variation.
We are trying to set up another system like this, but the codes being used are integers and contain no characters (e.g. 12345). When I try to add an item to the cart, the cart window appears and just hangs on loading. However, if I add a letter to the front of the code in the url (e.g. www.example.com?code=A12345), the cart loads.
Is there some workaround that allows just a number to be used as a variation?