Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Francis Benyah 25 posts 96 karma points
    Jul 19, 2020 @ 17:20
    Francis Benyah
    0

    Get List of Abondoned Carts

    Hey Matt

    Hope you are well.

    I was just wondering, what will be the best way to get a list of abandoned or orphaned carts in vendr programmatically

    Thanks

  • Matt Brailsford 2958 posts 15629 karma points MVP 7x c-trib
    Jul 20, 2020 @ 09:10
    Matt Brailsford
    101

    Hey Francis,

    We are working on a better approach for this, but right now, you'd need to use the SearchOrders method.

    var abandonedCarts = VendrApi.Instance.SearchOrders(storeId,
        searchTerm: null, cartOrOrderNumber: null, firstName: null, lastName: null,
        isFinalized: false, orderStatusIds: null, paymentStatuses: null,
        fromDate: fromDate, toDate: toDate);
    

    It's not the prettiest approach, but it should get you what you need.

    Matt

  • Francis Benyah 25 posts 96 karma points
    Jul 21, 2020 @ 15:08
    Francis Benyah
    0

    Thanks Matt

    Will use this for now. Much appreciated

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies