Announcement

Collapse
No announcement yet.

order numbers

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

    order numbers

    hi

    is there any way in actininc to customize the order numbers that are sent through the shop rather than random letters and numbers?

    thanks

    #2
    Hi there,

    Please click on the link below for previous discussions.

    Click HERE

    Hope this helps
    Thank You
    Menar Khan

    Comment


      #3
      The order number is generated by OrderScript.pl. There is the code fragment

      code:-------------------------------------------------------------------------------- $::s_sOrderNumber = $sInitials . $sPostCode . substr($$::g_pSetupBlob{CGI_ID}, -1) .
      substr("0000000" . $nCounter, -7);--------------------------------------------------------------------------------
      which assembles the final number. You can alter this line if you have some perl knowledge. But you must be very carefull here (and note that Actinic doesn't support any script customisation).

      I hope this helps.
      Rather than it display the initials and postcode, i want to change it to a set number/letter sequence so it is the same sequence everytime, well apart from the number

      would it be like this?

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

      ?

      Comment


        #4
        Hi there,

        Your perl seems correct although I am not an expert, therefore I would not be able to comment also there is no support for modified perl script. However, as I understand the core part is the counter;

        substr("0000000" . $nCounter, -7);
        This would be more of an 'trial and error' process, unless anyone with the knowledge of perl can comment.

        Note: Original perl scripts are kept in, Actinic Ecommerce V6|Original folder.
        Thank You
        Menar Khan

        Comment


          #5
          Tried it as i typed above but it threw up an error when running it.

          anyway i could maybe define new variables somewhere in the script? would that work?

          thanks

          Comment


            #6
            You need to put your character constant in quotes.


            $::s_sOrderNumber = "TT93HO" . substr($$::g_pSetupBlob{CGI_ID}, -1) . substr("0000000" . $nCounter, -7)
            Bob Ladden

            Comment


              #7
              more precisely...

              Hi everybody,

              I would like to trim off as many characters as possible in the order number (so that order numbers are shorter and easier to use).

              Can somebody give me the correct code for that?

              Thanks in advance!
              Mathieu Perino
              ICTL - Liaisons Optiques
              Website: www.ictl.com

              Comment


                #8
                Hi there

                Is this for version 7? or version 6? Both script have had major changes, i will ask the development team if this can be done, but it may not be possible, so please bear that in mind.

                Kind Regards
                Nadeem Rasool
                SellerDeck Development

                Comment


                  #9
                  Hi,

                  I'm on Developer version 7.0.1.0.0.0.EGSA

                  Thanks for your help.
                  Mathieu Perino
                  ICTL - Liaisons Optiques
                  Website: www.ictl.com

                  Comment


                    #10
                    Hi there

                    Okay am finding out the information

                    Kind Regards
                    Nadeem Rasool
                    SellerDeck Development

                    Comment


                      #11
                      Hi there

                      You can shorten the order number of an order if you like. To do this, open "OrderScript.pl" and on line 6209 you will have the following:
                      Code:
                      	$::s_sOrderNumber = $sInitials . $sPostCode . substr($$::g_pSetupBlob{CGI_ID}, -1) . substr("0000000" . $nCounter, -7);
                      So as an Example if you want the first 3 letters to be "ACT" and shorten it, so the whole number of would order would be 8 characters instead of 11 characters then you would make the following change:

                      Code:
                      $::s_sOrderNumber = "ACT" . substr($$::g_pSetupBlob{CGI_ID}, -1) .
                      		substr("0000" . $nCounter, -4);
                      You can take bits out, but you cannot extended it.

                      Hope this helps. Remember to backup the original orderscript.pl just in case something happens, i have tested this on my version and it works fine

                      Kind Regards
                      Nadeem Rasool
                      SellerDeck Development

                      Comment


                        #12
                        Thanks a lot!
                        Works perfect.
                        Mathieu Perino
                        ICTL - Liaisons Optiques
                        Website: www.ictl.com

                        Comment


                          #13
                          I add this part of code in orderscript.pl in version 7 and version 8.04. I worked perfectly.
                          I upgraded on friday to 8.5.1 : and get now an order number with 14 digits (instead of 8 before), so it seems that it doesn't work on this version ?
                          Is there a perl specialist on the forum to help me : my bank cannot accept more than 8 digits !!!
                          Didier
                          www.supreme.fr
                          _____________________
                          Saint Malo. France

                          Comment


                            #14
                            You will have to redo the changes you made on 8.0.4.

                            Kind regards,
                            Bruce King
                            SellerDeck

                            Comment


                              #15
                              Ok done. Thanks
                              Didier
                              www.supreme.fr
                              _____________________
                              Saint Malo. France

                              Comment

                              Working...
                              X