Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Mar 2007
    Location
    Seattle
    Posts
    38
    Plugin Contributions
    0

    Default How do I insert 2 randomly generated letters before order number?

    I am hoping someone can help me with a bit of code. I am only a good "cut and paster".
    Here is my story:
    I sell a digital product that I think might become quite a good seller. Currently though, it is still in the beginning stages and I have sold only a small number, say "65" downloads.
    I know that I can change the order numbers to start at a higher one, say "650", but I do not wish to do that.
    My potential future competition would only be encouraged by seeing a higher order number.
    Also, my customers viewing the actual order number (say 65) might not have as much confidence in my product or my business if they see their order is only number 65.
    Here is what I wish for:
    That a randomly generated 2 letter combination is inserted before their order number.
    So for example, if the random letters are "ZN", then the order number would be "ZN65".
    This makes the order number look very unique, and the customer cannot easily determine that theirs is only order number 65, because it could have gone all the way thru the alphebet before reaching order number "ZN65".
    But I would still know their order number is actually just "65". The letter code doesn't mean anything.
    This 2 letter prefix before the order number does not have to be added to the admin customer info, unless who ever is reading this and wishes to write some code wishes it to. The order number with the 2 letter prefix could just be in the order confirmation emails that myself and the customer receives.
    When I contact a customer, I can always just say to them "your order ending in the numbers ____".
    Does anyone wish to take on this task?
    I think it would be very cool.
    Many companies have similar letter and number combinations.
    I think having the actual order number is a bit too revealing.
    I greatly look forward to any thoughts, ideas, and contributions from this community.
    Brent
    PS. zen-cart is great!

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: How do I insert 2 randomly generated letters before order number?

    This seems a little over the top...

    If you want it to appear that you've sold thousands / millions / zillions of products, just re-set the Current Order ID to a much higher number, eg: 1250000

    ADMIN>TOOLS>STORE MANAGER
    20 years a Zencart User

  3. #3
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: How do I insert 2 randomly generated letters before order number?

    The OP said...
    I know that I can change the order numbers to start at a higher one, say "650", but I do not wish to do that.
    My potential future competition would only be encouraged by seeing a higher order number.
    However, a ridiculously high number won't fool the competition, and won't mean anything to the customer. Just start it off at something random like 19478365 and let it run from there. Only you will know what the starting point was.

    Rob
    Last edited by rstevenson; 15 Mar 2007 at 01:06 AM.

  4. #4
    Join Date
    Mar 2007
    Location
    Seattle
    Posts
    38
    Plugin Contributions
    0

    Default Re: How do I insert 2 randomly generated letters before order number?

    Rob:
    That's a good idea, some very long number like you suggested would look more like an "account number" than "orders sold".
    But I still think a few random letters would be nice.
    Perhaps an easier way to do this would be to just hard code in exactly what the letters would be. Then I could always just change them in the future.
    I admit the idea isn't exactly a "must have" for every zenner out there.
    Thank you,
    Brent
    PS. Ooh, brain storm: maybe I should just change the field name to "Account Number" instead of "Order Number".

  5. #5
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: How do I insert 2 randomly generated letters before order number?

    what happens when they order something else,
    now they have 2 account numbers
    Zen cart PCI compliant Hosting

  6. #6
    Join Date
    Mar 2007
    Location
    Seattle
    Posts
    38
    Plugin Contributions
    0

    Default Re: How do I insert 2 randomly generated letters before order number?

    Good point.
    I'll think about that one.

  7. #7
    Join Date
    Mar 2007
    Location
    Seattle
    Posts
    38
    Plugin Contributions
    0

    Default Re: How do I insert 2 randomly generated letters before order number?

    Okay. I slept on it. Since I really just sell a single digital product download, any repeat orders would be very few. Besides, people log into their account with their email address and password, not their account number. So it doesn't really matter much if someone winds up with more than one account number, since everything is tied to their login info.
    This is what I've done:
    Searched the developers toolkit for "Order Number" and "Order #".
    Changed several files. In place of "Order Number" and "Order #" I inserted either "Account Number: NZ-21-" or "Account # NZ-21-".

    So using my previous example of "Order Number 65", it now reads:
    "Account Number: NZ-21-65". Looks good in the user's account history too.
    It may seem unnecessary to some, but for me, it suits my purpose.

  8. #8
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: How do I insert 2 randomly generated letters before order number?

    actually sounds dumber than a box of fruity pebbles

    why not just use

    order # NZ-07-(then the real order number )
    Zen cart PCI compliant Hosting

  9. #9
    Join Date
    Mar 2007
    Location
    Seattle
    Posts
    38
    Plugin Contributions
    0

    Default Re: How do I insert 2 randomly generated letters before order number?

    That is good too. "Order # NZ-07-" may be better than "Account Number: NZ-07-".

  10. #10
    Join Date
    Jan 2007
    Posts
    22
    Plugin Contributions
    0

    Default Re: How do I insert 2 randomly generated letters before order number?

    Why not refer to it as a 'Transaction ID'??

    Jonathan

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Number of letters in the Product heading
    By Jenvin in forum General Questions
    Replies: 2
    Last Post: 23 Dec 2013, 07:24 AM
  2. No 'Order Number' generated at end of ordering process.
    By surface8 in forum Basic Configuration
    Replies: 7
    Last Post: 6 Nov 2009, 12:48 AM
  3. how to calucalate weight basedon the number of letters entered?
    By staft in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 5 Nov 2009, 05:17 AM
  4. how do i manually insert order in admin?
    By personalisedpresent in forum Managing Customers and Orders
    Replies: 1
    Last Post: 13 Mar 2007, 07:14 PM
  5. 2 Random Letters Before Order Number Hack Please?
    By Brent2 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 13 Mar 2007, 03:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR