November Happy Hour will be moved to Thursday December 5th.

Order Number Method in 10.4

Vote:
 

Hi All,

I upgraded my project from 9.14 to 10.4 

I have adopeted the ICart for my check out page. However  I haven't found the Order Number Method for generation of Custom Order Numebr for ICart  .

Can someone suggest me the implementation of new order number method delegate. 

Regards

Venka Phani Kumar R.

#176705
Mar 23, 2017 22:46
Vote:
 

Hi,

For the new APIs you can use IOrderNumberGenerator.GenerateOrderNumber. When you save your cart as a purchase order, just call that method to get a random order number

#176708
Mar 23, 2017 23:24
Vote:
 
<p>Hi Quan,</p> <p></p> <p>Thanks a lot... :)</p> <p></p> <p>Regards</p> <p>Venkata Phani&nbsp;</p>
#176712
Mar 24, 2017 2:06
Vote:
 

Hi Quan,

I want to assign the tracking number as web1234 instead of PO1234.

How to override the the DefaultOrderNumberGenerator  with my Custom Ordergenerator. 

Regards

Venkata Phani Kumar R

#176714
Mar 24, 2017 2:54
Vote:
 

Hi Quan,

I got the solution ...

purchaseOrder.OrderNumber = _orderNumberGenerator.GenerateOrderNumber(Cart);
_orderRepository.Save(purchaseOrder);

Its working fine ofr me ;

Regards

Venkata Phani kumar R

#176715
Mar 24, 2017 4:54
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.