Copied to clipboard

Flag this post as spam?

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


  • Gordon Saxby 1461 posts 1883 karma points
    Jan 23, 2014 @ 22:12
    Gordon Saxby
    0

    Set product as sold

    The site I am working on sells individual products, so once the SagePay process has completed I need to set the product as "not available".

    Where / how is the best way of doing that? Do I need to capture an event in .Net? Do I just write it in the "Confirmation" template (with Razor)?

  • Gordon Saxby 1461 posts 1883 karma points
    Jan 23, 2014 @ 22:44
    Gordon Saxby
    0

    OK - I think I have figured it out - I have the following

    NotificationCenter.Order.Finalized += TC_OrderFinalised

    To capture the event when the order is marked as paid, on return from Sage (is that correct?).

    I then loop through the order lines to update each product.

  • Anders Burla 2560 posts 8256 karma points
    Jan 24, 2014 @ 15:01
    Anders Burla
    0

    That is correct. Use the NotificationCenter

    Kind regards
    Anders

Please Sign in or register to post replies

Write your reply to:

Draft