Posted on 22/02/2024 16:21:38
Lots of input.
The short answer is yes.
If you use the customer center (the new one for viewmodels), you can use a customer center command to start the reorder:
https://doc.dynamicweb.com/template-tags/introduction/ecommerce/customer-center-commands
<a class="btn btn-info" href="?CustomerCenterCmd=Reorder&OrderId=@Model.Id">Add order to cart</a>
It will add all the products to cart, and then you can redirect the user to checkout.
Or if you use Swift as Nuno is referring to, you can use express buy. See https://doc.dynamicweb.com/swift/setup-project/other/customer-center#sideNavTitle1-4-2
The reason to get a new cart is that prices can have changed, products discontinued or out of stock, credit limits expired etc. So a validation of the new order usually needs to take place. But you can make a very simplified convert cart to order flow that skips most of the logic in the checkout.
BR Nicolai