Skip to Content
0
May 11, 2018 at 05:05 AM

Place order from OrderTemplate

60 Views

In B2B Project , We have Requirement that Customer can place order at schedule time but only for one time.For time thing it can be achieved by Task functionality.

To avoid cart related issue. When customer clicked on schedule order at storefront, we are recording data such as customer details , product Quantity map and deleted that cart because in that cart we don't want to modification. Other related data such as delivery address,payment address,delivery method, any promotion is not required in our case.There might be case that : At schedule time same cart can be used by TaskRunner Implementation and B2BCustomer in storefront.

How we can place order with customer details and product Quantity map data.

1- Is there any way to place order(with customer , product quantity data) without creating cart.?

2- I have checked OrderTemplate. It is assuming that there must be Reference orderModel from which it is cloning. In this case How can add Product to OrderEntry instead of CartEntry.

Please help on this.