You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the TB database the Order>reference field is a VARCHAR(100), as is the order_payment>order_reference field.
However when trying to create random order reference values it appears that the length of this field is limited to 9 characters.
This was discussed here on Stack Overflow a few years back and it seems that in PS the actual database limit was 9 characters. The database column limit has been increased with TB but the code that limits the maximum length wasn't adjusted accordingly.
The text was updated successfully, but these errors were encountered:
Looking a bit and testing a bit, both Order.php (line 51) and OrderPayment.php (line 72) need to be tweaked to a larger number in order to allow larger order reference numbers. Both are set to 9 in the standard installation.
Ah, I see what caused that to happen. The original module I used to generate random order reference numbers redefined the two columns to be much larger.
After I uninstalled that module the column definitions remained VARCHAR(100) but the table definition overrides were removed and that resulted in the exceptions I was seeing.
In the TB database the Order>reference field is a VARCHAR(100), as is the order_payment>order_reference field.
However when trying to create random order reference values it appears that the length of this field is limited to 9 characters.
This was discussed here on Stack Overflow a few years back and it seems that in PS the actual database limit was 9 characters. The database column limit has been increased with TB but the code that limits the maximum length wasn't adjusted accordingly.
The text was updated successfully, but these errors were encountered: