WebSite X5Help Center

 
Martin Gross
Martin Gross
User

How to format the Cart Order ID  en

Автор: Martin Gross
Просмотрено 1439, Подписчики 3, Размещенный 0  
Тэги: commerce,e,id,order

Hello everybody, I have another issue with the e-commerce. Is there a way how to change the order number that is assigned to the orders? I have implemented a bank transfer option for the clients and need to identify the payments. Regretfully, the banks in the Czech Republic only accept numbers as payment ID (so called variable symbol), so the order nubmer in the format 130813-KI37 is useless for this pupose. Thank you Martin

Размещено
6 Ответы - 1 Корректно
Incomedia
Steve J.
Incomedia

Hello Martin,

wsx5 creates this ID code as default. There's no way to change it from the software. The only way could be to edit the JS code present in the mail engine file of the cart that should be x5cartengine.js. This file is present in the installation wsx5 folder (res)

Actually the order number format is:

'order_no_format': "[yy][mm][dd]-[A-Z][0-9][A-Z][0-9]"

I cannot give you more help and I stronlgy suggest you to test all your modifications when you edit the JS code.

Hope this helps!

Читать больше
Размещено От Steve J.
Martin Gross
Martin Gross
User
Автор

Hello Steve,

does this workaround apply for the X5 Professional too?

Thank you

Читать больше
Размещено От Martin Gross
Incomedia
Steve J.
Incomedia

Hello Martin,

yes, it works in the same way for the oreder formatting.

Читать больше
Размещено От Steve J.
Martin Gross
Martin Gross
User
Автор

Thank you, Steve, will give it a try.

Читать больше
Размещено От Martin Gross
Martin Gross
Martin Gross
User
Автор

Hello, I tried to deal with it, but with no success. Is here anybody who could assist? Any help will be very much appreciated.

Thank you!

Martin

Читать больше
Размещено От Martin Gross
Incomedia
Steve J.
Incomedia

Hi,

you can create an order number composed by 5 digits adding this code in the HEAD section of the whole website (step 1 | Advanced Settings | Head section)

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

Hope this helps!

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