Announcement

Collapse
No announcement yet.

Order numbers

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

    Order numbers

    Is there a way to have the orders numbered without the customer initials & zip code appended to the start of the number? I want a numerical number, incremented as the orders come in. My goal is to be able to sort the orders in Quickbooks in the order received.

    Thanks.
    -------

    Pat

    #2
    Have you tried running a search on the forum I think theres quite a few threads on this subject, or try this one: http://community.actinic.com/showthread.php?t=19790

    hth
    www.speed4u.co.uk for Top Quality High Speed Flash Cards, USB Pen Drives and Hard Drives

    Comment


      #3
      Thank you.

      I did this:

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

      And got the order number 10027633. This is much closer to what I want, but I would like to get rid of the "100" at the beginning, so my number is 27633. Do I change the -7 to -4?
      -------

      Pat

      Comment


        #4
        I think the leading '1' is from

        substr($$::g_pSetupBlob{CGI_ID}, -1)

        You probably want:

        $::s_sOrderNumber = substr("0000000" . $nCounter, -7);

        Alan Compton
        www.greenknightgames.co.uk
        Great board games and cards games you won't find in the High Street
        http://www.greenknightgames.co.uk/ac...iftTRAP_2.html
        Think you know what your friends and family want for Christmas?
        Play GiftTRAP - the ideal Christmas party game - and find out!

        Comment

        Working...
        X