WebSite X5Help Center

 
Martin Gross
Martin Gross
User

How to format the Cart Order ID  en

Autor: Martin Gross
Visitado 1436, Followers 3, Compartido 0  

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

Publicado en
6 RESPUESTAS - 1 CORRECTO
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!

Leer más
Publicado en de Steve J.
Martin Gross
Martin Gross
User
Autor

Hello Steve,

does this workaround apply for the X5 Professional too?

Thank you

Leer más
Publicado en de Martin Gross
Incomedia
Steve J.
Incomedia

Hello Martin,

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

Leer más
Publicado en de Steve J.
Martin Gross
Martin Gross
User
Autor

Thank you, Steve, will give it a try.

Leer más
Publicado en de Martin Gross
Martin Gross
Martin Gross
User
Autor

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

Leer más
Publicado en de 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!

Leer más
Publicado en de Steve J.