VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: snow_man1227 on January 22, 2013, 04:46:25 AM

Title: How to customize Customer Id to simple?
Post by: snow_man1227 on January 22, 2013, 04:46:25 AM
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!
Title: Re: How to customize Customer Id to simple?
Post by: reinhold on January 22, 2013, 12:03:53 PM
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
Title: Re: How to customize Customer Id to simple?
Post by: reinhold on January 23, 2013, 12:15:22 PM
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.
Title: Re: How to customize Customer Id to simple?
Post by: snow_man1227 on January 28, 2013, 11:19:05 AM
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!