Is there a way to clear the shopping cart if the user navigates away from the cart.

michaeltadder
Tera Contributor

We currently have issues when users do not complete the checkout process in the shopping cart and navigate away for the shopping cart.   They then return to the order guide and begin to place a new order.   When they proceed to the checkout for the new order the items from the old order are in the cart.  

Is there a way to empty the original shopping cart as soon as they navigate away from the cart?

3 REPLIES 3

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Mike,



You may find the below link helpful.


Clear the cart if user exits orderguide without completion


Thanks Pardeep



I actually went through the info in your link before I submitted the question. The problem is we need the cart to clear immediately after exiting the order guide without checking out. The other suggesting in the link does not really give enough information on the script.



I suppose another solution to the problem would to clear any abandon cart when a user starts a request in the order guide but I have not found anything for this either.


shouvik
ServiceNow Employee
ServiceNow Employee

From Helsinki there is way to handle this scenario.


Under Oder Guide there is a flag called 2-step. If that is enabled, the old cart will not be checked out with the checkout of the order guide. Order guide will only check out items in the order guide.


For catalog item, there is a new property 'glide.sc.enable_order_now' which makes Oder Now only order the specific item without adding it to the cart. So the cart remains intact.



Thanks


Shouvik


PS: Hit like, Helpful or Correct depending on the impact of the response