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 1186 posts 1360 karma points
    1 week ago
    Gordon Saxby
    0

    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

  • Rune Grønkjær 1284 posts 2824 karma points
    1 week ago
    Rune Grønkjær
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft