Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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)?
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.
That is correct. Use the NotificationCenter
Kind regardsAnders
is working on a reply...
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.
Continue discussion
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)?
OK - I think I have figured it out - I have the following
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.
That is correct. Use the NotificationCenter
Kind regards
Anders
is working on a reply...
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.