Copied to clipboard

Flag this post as spam?

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


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Jeavon Leopold 3074 posts 13631 karma points MVP 11x admin c-trib
    Apr 04, 2011 @ 15:37
    Jeavon Leopold
    0

    Get Order after redirection

    Hi,

    I want to get order details (ideally in XSLT) after the user has been redirected back to the website following payment (SagePay in our case), so we can use GA ecommerce tracking, obviously GetBasket() is empty.

    Thinking about storing the orderGuid in the session so it can retrieved, which should do the job, but is there a better solution?

    Thanks,

    Jeavon

  • Søren Spelling Lund 1797 posts 2786 karma points
    Apr 05, 2011 @ 08:14
    Søren Spelling Lund
    0

    Hi Jeavon,

    You can also assign an order number prior to redirecting to the payment gateway using CommerceLibrary:AssignOrderNumber(). Once an order number is assigned uCommerce will leave it alone. It's much the same solution as the guid but you can use the order number to retrieve the order from XSLT using CommerceLibrary:GetPurchaseOrder(orderNumber).

  • Jeavon Leopold 3074 posts 13631 karma points MVP 11x admin c-trib
    Apr 05, 2011 @ 13:57
    Jeavon Leopold
    0

    Hi Soren,

    We implmented this using the GUID and it works perfectly. We save the GUID to the session on the checkout page and when the user comes back to the success page following payment we use the CommerceLibrary:GetPurchaseOrder($orderGuid)to generate the Google Analytics Ecommerce tracking code and then clear the session variable.

    Very impressed with the flexability of uCommerce.

    Thanks,

    Jeavon

  • Søren Spelling Lund 1797 posts 2786 karma points
    Apr 05, 2011 @ 14:11
    Søren Spelling Lund
    0

    Hi Jeavon,

    Glad to hear and thank you for those kind words.

Please Sign in or register to post replies

Write your reply to:

Draft