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.
GetCurrentFinalizedOrder problem?
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?!
https://github.com/TeaCommerce/Starter-kit-for-Umbraco/blob/master/Source/Website/Views/CartStep6.cshtml
Hi Gordon,
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.
/Rune
is working on a reply...