Announcement

Collapse
No announcement yet.

Postcode format

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

    Postcode format

    Hi,

    Just wondered if it is possible to change the postcode format so the sequence includes the full customer postcode in the order number on V7.0.2

    Regards
    June

    #2
    In this thread http://community.actinic.com/showthread.php?t=4741 you'll find this on the second page:

    If you want it to take the 1st four digits of the postcode then open the orderscript.pl file and find the line


    $sPostCode = substr($sPostCode, -4, 4);

    change the -4 to 0 and it will read from the start of the postcode

    hope this might help some of you
    If you comment out the line rather than changing it then the full postcode will be used instead of the shortened version.

    Mike
    -----------------------------------------

    First Tackle - Fly Fishing and Game Angling

    -----------------------------------------

    Comment


      #3
      Many thanks Norman,

      Have changed the format - will see how it works

      Regards
      June

      Comment


        #4
        Norman? lol, another person being mistaken for him.
        "If my answers frighten you then you should cease asking scary questions"

        Comment


          #5
          Oops! Sorry Mike - is there any way of replacing the contact initials with more of the postcode, as this would be much more useful for tracking purposes?

          Regards
          June

          Comment


            #6
            In orderscript.pl find this line:
            Code:
            $::s_sOrderNumber = $sInitials . $sPostCode . substr($$::g_pSetupBlob{CGI_ID}, -1) .
            and replace it with:
            Code:
            $::s_sOrderNumber = $sPostCode . substr($$::g_pSetupBlob{CGI_ID}, -1) .
            That will remove the initials from the order number.

            If you do this as well as what Mike mentioned above you will have the full post code at the start of the order number.

            Comment

            Working...
            X