Placing undo function next to deleted cart__removed-product line

Highlighted
Excursionist
35 4 1

Hi all, 

I'm looking for a quick way to add a undo function whenever a product is removed from the cart page like you see on the image below; this line shows up; 

OwnProductLineWhenRemovedOwnProductLineWhenRemoved

 

Like in the example below; I want to add a Undo line/button like this, so basically what it needs to do is simply re-add the product that has been removed, I have it exact in my head how it goes, but I'm not sure how to code something like this

 

UndoFunctionUndoFunction

 

I've added the cartRestoredProduct: 'cart__restored-product', but after that I'm stuck, is it like basically calling the cart previous state and make that in a restore function somehow? like it can be a click event, I'm not sure if that is the right approach. Like restore previous product or all the products, 

  var classes = {
    cartNoCookies: 'cart--no-cookies',
    cartRemovedProduct: 'cart__removed-product',
    cartRestoredProduct: 'cart__restored-product',
    hide: 'hide',
    inputError: 'input--error'
  };

 

Thanks for reading and thinking with me!

0 Likes
Highlighted
Excursionist
331 50 74

Hello.This is very big feature. For that, you have to hire me. Can you do that?

If this solution works, then please accept it as solution and like.
For theme customization, please contact parambabla.soft@gmail.com
0 Likes
Highlighted
Excursionist
35 4 1

This is not a big feature, and why are implying to simple hire you to get the task done? if I wanted that I would've placed a offer and this topic somewhere else.

0 Likes
Highlighted
Excursionist
331 50 74

Then do it yourself

If this solution works, then please accept it as solution and like.
For theme customization, please contact parambabla.soft@gmail.com
0 Likes
Highlighted
Astronaut
1083 178 213

@Remco112 

Hello,

This is a fairly complex feature indeed.
Perhaps someone around may be kind enough to get it implemented onto your website with no costs but, other than that, I don't think there are many alternatives.

Kind regards,
Diego

◦ Problem Solved? ✔️ Please click on Accept as Solution and like.
◦ Hire me! Recommended by 25+ customers on Facebook. Click here to read their reviews.
◦ Contact me at: diego.boarutto.fortes@gmail.com
0 Likes