Developer forum

Forum » Ecommerce - Standard features » Resume cart in last step, except if cart changes

Resume cart in last step, except if cart changes

Nuno Aguiar
Reply

Hi,

 

We have developed a website where the client wants the user to resume the cart on the last step. That is easy and works perfectly, but we made a custom development in the cart that get's overritten if the user goes directly to the checkout step (payment)

 

We are using the Cart Loaded subscriber (Dynamicweb.Extensibility.Subscribe(Dynamicweb.Notifications.eCommerce.Cart.Loaded) but doesn't seem to get triggered if we go straight to payment.

 

However my question/request is, could it be possible not to go to the last visited step (and go to step 1) if the cart changes?

 

Best Regards,


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Nuno

It is a bit tricky - in 8.7 an order has a IsDirty property that is true if the order has changed.

When the cart is resumed, you might be able to listen to a notification, i.e. OrderIsPassedToCheckoutHandler notification and make your check there.

BR Nicolai

Votes for this answer: 1
 
Nuno Aguiar
Reply

Hi Nicolai,

 

Thanks for the info. Right now we cannot upgrade to 8.7 but will take it into consideration when the time comes.

 

Best Regards,

Nuno Aguiar

 

You must be logged in to post in the forum