News:

Looking for documentation? Take a look on our wiki

Main Menu

How to customize Customer Id to simple?

Started by snow_man1227, January 22, 2013, 04:46:25 AM

Previous topic - Next topic

snow_man1227

Hi everyone,

I want to customize Customer Id more simple, such as: {Country(2)code_randomNumber} US_01234
Please help me where I can modify it?

I use joomla 2.5.8 and virtuemart 2.0.16

Thanks!

reinhold

#1
Quote from: snow_man1227 on January 22, 2013, 04:46:25 AM
I want to customize Customer Id more simple, such as: {Country(2)code_randomNumber} US_01234
Please help me where I can modify it?

My ordernumber plugin allows you to configure the format of the customer number since version 1.6 of the plugin:
  http://www.open-tools.net/virtuemart-2-extensions/vm2-ordernumber-plugin

However, so far I have not implemented the two-letter countrycodes, so currently it is not possible to get the exact format you desire. I have put that feature on my TODO-list, but I cannot say whether or when I will be able to implement it.

Cheers,
Reinhold

reinhold

#2
Quote from: reinhold on January 22, 2013, 12:03:53 PM
My ordernumber plugin allows you to configure the format of the customer number since version 1.6 of the plugin:
  http://open-tools.net/virtuemart-2-extensions/vm2-ordernumber-plugin

However, so far I have not implemented the two-letter countrycodes, so currently it is not possible to get the exact format you desire. I have put that feature on my TODO-list, but I cannot say whether or when I will be able to implement it.

The latest version 1.7 of the ordernumber plugin is now also able to create customer numbers of the format US_00001. The corresponding format string in the config would be:
   [countryCode2]_#
with a minimum number of digits of 5.

snow_man1227

Thank you for your reply, I think your plugin is great but it needn't to use all function of this plugin.
I just needed to customize the customer number and I customized it myself.

Thanks all!