Announcement

Collapse
No announcement yet.

Can I make the order number shorter?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Can I make the order number shorter?

    Currently, order numbers are made up the customer initials, then the postcode, then a sequential number – totalling 14 characters.

    If you want this to be shorter, use the following technique.

    In this example we will replace the first part of the order number with three letters ('ACT') and then only have 5 characters for the sequential number, rather than 8.

    Locate the file 'OrderScript.pl' within your site folder and open it using 'Notepad' or a similar text editor.

    Search for '0000000'. You should find the following line:

    $::s_sOrderNumber = $sInitials . $sPostCode . substr($$::g_pSetupBlob{CGI_ID}, -1) . substr("0000000" . $nCounter, -7);

    Change the line to:

    $::s_sOrderNumber = "ACT" . substr($$::g_pSetupBlob{CGI_ID}, -1) . substr("0000" . $nCounter, -4);

    Change "ACT" as required.

    SellerDeck is not able to provide any detailed support for script changes made. If you find that there is a problem, an original copy of the script can be found within the 'Original' folder in your installation. Copy this into your site folder.
Working...
X