Jump to content

Keep order


Recommended Posts

Hello,

Is it possible to have an order in a suspended state? I mean maintaining it in the cart or someplace else and after some time (days or weeks) have the client login again in the shop and finishing the order?

I need to send a sample to the prospect client and only after the sample is aproved the client will go back to the shop and finish the payment. At this point he can pay with paypal only.

Is this possible?

Thanks

AM

PS: I've put this question in the Modules forum before but since I got no response I'm resposting it here and explain it better.

Link to comment
Share on other sites

I already thought it would not be possible to do this out of the box. However I feel sufficiently comfortable to implement a module that would do that if someone (from the Prestashop team maybe) could just point me in the right direction.

I've been looking at other solutions .. could I somehow modify the Wishlist module to create a module with open orders?

Thanks in advance for any help.

AM

Link to comment
Share on other sites

Quite easy. The carts are not deleted, when you "loose" we only remove the id from the cookie.
So you can in a few seconds add a page listing the old carts and when the customer click on it again it just put the id in the cookie again.
Everything's possible and really easy.

Do not try to use the wishlist, you won't like the experience ^^

Link to comment
Share on other sites

  • 4 weeks later...
Quite easy. The carts are not deleted, when you "loose" we only remove the id from the cookie.
So you can in a few seconds add a page listing the old carts and when the customer click on it again it just put the id in the cookie again.
Everything's possible and really easy.

Do not try to use the wishlist, you won't like the experience ^^


I am trying to implement this order "resume".
I am getting the card_id of the order I want to resume, and I am trying to set it in the cookie.
It is behaving very oddly, and doesn't seem to work properly, the cookie is not being saved properly.

I am sending the cart_id as a variable to a new page I created (very similar to history.php)
I am trying to set the card id to the variable I pass, and navigate to order.php

if ($_REQUEST['resume'] != "")
{
   if ($cookie->id_cart != $_REQUEST['resume'])
   {
       $cookie->id_cart = $_REQUEST['resume'];
       Tools::redirect('order.php');
       exit;
   }
}



Any ideas what I'm missing?


Edit: Looks like the problem was not setting the cookie, but rather the shopping cart was getting reset because the order appeared to have been placed already.
thanks anyway.

Link to comment
Share on other sites

×
×
  • Create New...