+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Removing a Product from WishList once the order has been placed?

Removing a Product from WishList once the order has been placed?

7 posts, 0 answered
  1. Radhakrishnan
    Radhakrishnan avatar
    4 posts
    Registered:
    21 Jun 2012
    03 Oct 2013
    Link to this post
    How do i know a product has been moved from the wishlist to shopping cart
    and then it has been  purchased? Actually i have to remove the product
    from the wishlist once the order has been placed.
  2. Jochem Bökkers
    Jochem Bökkers avatar
    787 posts
    Registered:
    13 Aug 2007
    03 Oct 2013 in reply to Radhakrishnan
    Link to this post
    Hey Radhakrishnan,

    A product will remain in the wishlist, even after purchase is complete until the order is marked from 'pending' to 'paid'.

    By default, if a user completes a checkout, in sitefinity's backend (Ecommerce >> Orders) you'll see it have the status 'pending'. Once you mark it as 'paid' it will be automatically removed from the user's wishlist. They did this, so cancelled orders wouldn't remove items from the wishlist...

    Jochem
  3. Radhakrishnan
    Radhakrishnan avatar
    4 posts
    Registered:
    21 Jun 2012
    03 Oct 2013
    Link to this post
    Hi Jochem,
         I am using Offline payment method.So while placing the order, the order status is default y changing from 'unknown' to 'paid'.So i have to remove the product from the wishlist through coding only.How do i achieve this?
  4. Jochem Bökkers
    Jochem Bökkers avatar
    787 posts
    Registered:
    13 Aug 2007
    03 Oct 2013 in reply to Radhakrishnan
    Link to this post
    Hey Radhakrishnan,

    By default, even with offline payments, the status of an order in Sitefinity's backend will be 'pending', but if you'd like to manually remove it from wishlist, this should help you out:

    http://www.sitefinity.com/documentation/documentationarticles/developers-guide/sitefinity-essentials/modules/ecommerce/wish-lists/wish-list-details/deleting-wish-list-details
  5. Radhakrishnan
    Radhakrishnan avatar
    4 posts
    Registered:
    21 Jun 2012
    03 Oct 2013
    Link to this post
    Hi Jochem,
              Thanks for your reply.i think you did not understand my question properly. If we add a product from wishlist to shopping cart and if we place the order, then the order status is changed to 'paid'. Then how do we find the products which has been added from the wishlist to shopping cart?   After the order is purchased successfully i checked the WishlistDetail property 'PurchaseStatus' that is still showing as 'Not purchased'.
  6. Jochem Bökkers
    Jochem Bökkers avatar
    787 posts
    Registered:
    13 Aug 2007
    03 Oct 2013 in reply to Radhakrishnan
    Link to this post
    Hey Radhakrishnan,

    Perhaps I am, I was merely saying "If we add a product from wishlist to shopping cart and if we place the order, then the order status is changed to 'paid'."  isn't the default behavior. The default behavior is that an order gets marked as pending. And while an order is not complete, the item will remain in the wishlist.

    To your second question: Order details store a wishlist detail id, so with that wishlist detail id you could remove the product from the wishlist.
  7. Radhakrishnan
    Radhakrishnan avatar
    4 posts
    Registered:
    21 Jun 2012
    04 Oct 2013 in reply to Jochem Bökkers
    Link to this post
    Hi Jochem,
                     My Order details showing the wishlist detail id is as null, even though i have added the product from the wishlist to cart.
7 posts, 0 answered