Purchase order numbering rules

24.12.2013 16:44
#1
astrit
Joomshopping forum user no avatar
Name: Astrit
15.11.2012
Posts: 9
Quote
Purchase order numbering rules

Hello.

Please advise of the following:

Let's say, now I have an Order number: 00000012.

But I would like to have an order numbers consisted of "six digits (ordinal) + first 4 letters of the customer's name + first 4 letters of the customer's surname", for example: "000012JohnSmit". The name and surname details have to be taken from customer Registration details.

How can I do this?

 
24.12.2013 19:46
#2
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16511
Quote
Aw: Purchase order numbering rules

components\com_jshopping\tables\order.php

function formatOrderNumber($num){
$number = outputDigit($num, 8);
return $number;
}

 
Copyrights MAXXmarketing GmbH. All Rights Reserved