Developer forum

Forum » Ecommerce - Standard features » Use previous order as template for new

Use previous order as template for new

Stephen Anthony Jackson
Reply

Hi.

One of our customers wishes to use previous orders, and simply "order again" the same in a new order.

I know that "Recurring Orders" exist, but thats a slightly different use-case.

Does DynWeb support "re-ordering" out of the box?

Cheers

//Steve


Replies

 
Andrew Rushworth
Reply
This post has been marked as an answer

Hi Stephen,

There is a Re-Order button on the Customers Orders screen:

Just be careful though as it copies all the Custom Fields too. What I did was created a subscriber to clear out all the custom fields on a re-order.

Votes for this answer: 1
 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply
This post has been marked as an answer

Hi Stephen,

 

In Swift, as of v1.19 (https://github.com/dynamicweb/Swift/releases/tag/v1.19.0) the Reorder uses the Express Buy to validate orderlines prior to adding them to the cart (not copying the custom fields nor address fields like Andrew mentions.

 

It will check for out of stock/unavailable products, discontinued products and replacement products as well, so you have much more control.

 

Best Regards,

Nuno Aguiar

Votes for this answer: 1
 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

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

Votes for this answer: 1
 
Stephen Anthony Jackson
Reply

Where do you see that? I am using swift 1.21 with no custom templates

 
Stephen Anthony Jackson
Reply

Ah nvm. I found it now. Cheers!

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Stephen

You can click the cart icon in my orders overview:

Votes for this answer: 1

 

You must be logged in to post in the forum