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
I am working on a site (inherited it ready built) that seems to have based the checkout pages on your sample kit.
On the confirmation page (step 6), it calls TC.GetCurrentFinalizedOrder to get the order just made. However, it seems as though you can just access the confirmation page directly, without going through the checkout pages - in that case I get the details of the last order made, which is potentially a bit of a problem.
Actually, it seems to be possible to directly access most (?) of the checkout pages directly, which could definitely cause an issue!
Is there a way to detect that an order has not yet actually been completed? And also, how can I detect that the user has actually progressed though the pages in order?!
That is mostly correct. All checkout pages are just standard Umbraco pages with whatever security and access that follows.
Normally we just show a pretty message on a cart step, if theres no order or order lines.
As for the confirmation step there's not much of a difference. The TC.GetCurrentFinalizedOrder method returns the current, or last if you will, order made on that browser. Depending on wether the store is set up to "save" the order in the session or in a cookie it will live there for as long as the settings let it. So the confirmation step can be visited multiple times with the finalized order until the cookie or session runs out.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted