WebSite X5Help Center

 
Greg B.
Greg B.
User

Customise the order number  en

Автор: Greg B.
Просмотрено 838, Подписчики 2, Размещенный 0  

Can i customise the sequential order number of a customer order so has a prefix and numbering that has relevance to my business

Размещено
4 Ответы - 1 Корректно
Axel  
Axel  
User
Лучший пользователь месяца FR

Hello Greg,

Yes you can.

Put this code into the code tab for the SEO section step 1 before the closing </HEAD>

<script type="text/javascript">

x5engine.boot.push(function () {
x5engine.cart.manager.settings({
"order_no_format": "AFS-[yy]-[0-9][0-9][0-9][0-9][0-9]"
});
}, false, "last");
</script>

Enjoy!
Axel

Читать больше
Размещено От Axel  
Greg B.
Greg B.
User
Автор

Hi Axel -

Thank you for that.  Before i give it a try, I should have been more specific.

Invoice is a LadderZone sale and i would like the prefix to be "LZ" followed by sequential numbering beginning at 002000 as it distingushes sales from a previous website 

Can i assume that the the code "AFS-[yy]-[0-9][0-9][0-9][0-9][0-9]" can be my choosing?

Can "AFS" be "LZ" and leave [yy] out. How would i get it to start at 002000 or does it have to begin all zeros

i.e LZ002000, LZ002001, LZ002002 etc. 

Thanks Greg

Читать больше
Размещено От Greg B.
Axel  
Axel  
User
Лучший пользователь месяца FR

Hello,

Yes you can change the AFS by LZ. But the number cannot be sequential and only randomized...(I think).
Because to be sequential you need to memorize somewhere the last number used.

You can try.

May be other user has a solution to do that !

Allo ... other user, are you there ?

Enjoy!
Axel

Читать больше
Размещено От Axel  
Greg B.
Greg B.
User
Автор

Thanks Axel - ill give it a go

Читать больше
Размещено От Greg B.