Developer forum

Forum » Ecommerce - Standard features » Order ID and Cart ID question

Order ID and Cart ID question

Dmitrij Jazel
Reply
Hello DW :-)
I have a small question here regarding Order ID.
The situation is that when I am viewing cart before checkout, I see orderID as (for example) CART80, eventually I am sticking to it, but after order goes through, and after it passes through checkout, on the reciept it says Order50 as orderID. In the DB it saves as Order50.

Is that normal, am I missing some tag somewhere here, or is it supposed to be like that?

Would be great to get some help on this one.
Many thanks in advance,

Dmitrij

Replies

 
Merethe Nielsen
Reply
This post has been marked as an answer

Hi

It's normal behavior:

Before checkout it has a cartID and after checkout it's an orderID due to this:
The steps before checkout have the responsibility of showing the cart to the customer and to get customer information from the customer, such as the delivery address. The checkout step is a special step that performs all the logic of turning a cart into an order. This includes letting the customer pay for the order through a payment gateway such as DIBS or Quickpay.

 
http://developer.dynamicweb-cms.com/documentation/for-developers/ecommerce/checkout-handlers.aspx

Kind regards,
Merethe
Votes for this answer: 0
 
Dmitrij Jazel
Reply
Hello Marethe,

Allright than, well in that case is it possible to do something that could make Order ID generate just a plain number (3231) Without ORDER or CART?
Should I make some custom tag, or there is a solution out of the box? :-)

Kind regards,
Dmitrij
 
Merethe Nielsen
Reply

I'm not sure if you can change the cart  ID through the API (ask in the Developer category about this), but the auto numbering of the order ID can be changed in the Management Center - ecom - Advanced settings - Auto numbering. Check attached file.
autonumbering.png
 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply
Yes, you can change the Order ID using the API: http://devierkoeden.com/articles/notificationsubscribers-part-5-changing-the-order-id.aspx

Cheers,

Imar

 
Dynamicweb Employee
Theint Thandar Soe
Reply

Hi 

I have a similar question regarding Order ID.

Is it possible to generate an Order ID with the format 'CARTID_ORDERID' based on one of the customer's requirements? If yes, what are the impact areas and cases of this Order ID format? Also, I want to know if it is possible to configure this in 'ecom - Advanced settings - Auto numbering' to achieve an Order ID as 'CARTID_ORDERID'.

Best Regards,

Theint

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Theint,

 

What are you trying to achieve with it?

 

You can change the prefix (you can likely use the same prefix for carts and orders), but the ID itself will change as the cart becomes and order (gets to the payment step and/or is completed).

 

Best Regards,

Nuno Aguiar

 

You must be logged in to post in the forum