Author Topic: How do I get VM2 to produce usefu, non-random, consecutive order numbers?  (Read 2409 times)

zippygaloo

  • Guest
The generated order numbers in VM2 aren't very useful. I'd like to have non-random, consecutive order numbers. How do I go about doing that?

Potter68

  • Beginner
  • *
  • Posts: 7
Re: How do I get VM2 to produce usefu, non-random, consecutive order numbers?
« Reply #1 on: December 29, 2011, 10:10:55 am »
I have the same problem. This is what it looks like:

Thank you for your order!
Payment method    Bank Account
Order Number    dc213dec
Amount    106,00 €

Best regaords,
Potter

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3486
  • using Matomo instead of Google Analytics
Re: How do I get VM2 to produce usefu, non-random, consecutive order numbers?
« Reply #2 on: December 29, 2011, 10:18:47 am »
I suppose the generated number is a security feature, in order to prevent hackers to log into customer's order history with something like 1001, 1002, 1003,...
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9856
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: How do I get VM2 to produce usefu, non-random, consecutive order numbers?
« Reply #3 on: December 29, 2011, 11:01:06 am »
There is a trigger to change the data. There is no plugin done yet, but maybe you wanna write some.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

acidbird

  • Beginner
  • *
  • Posts: 3
can you be more specific? what trigger and how to use it? thx!

woonydanny

  • Jr. Member
  • **
  • Posts: 110
this would be helpful for me as well  8)

frkal659

  • Beginner
  • *
  • Posts: 5
Hi all, I need to solve this problem too. I was using order numbers as variable numbers to identify payments, but now it's impossible. I would need order numbers in format 30XXXXXX, where 30 is identifying an eshop where was order generated and XXXXXX are automatically generated order numbers (last order+1). Is it possible to set this in new VM2? Please help. Thank you.