Copied to clipboard

Flag this post as spam?

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


  • phil 58 posts 78 karma points
    Apr 11, 2012 @ 15:39
    phil
    0

    Error after payment

    I have my order being submitted to paypal and processing the order fine and when I load the confirmation page all the finalized order information is displayed fine but the mini cart which is displayed on every page errors with Error loading MacroEngine script (file:MiniCart.cshtml). When I refresh the page it comes back working fine with an empty basket.

    I have worked it down to Order order TeaCommerce.GetOrder() which is causing the error how can I stop this happening

  • Anders Burla 2560 posts 8256 karma points
    Apr 12, 2012 @ 16:53
    Anders Burla
    0

    Hi Phil

    When you order is processed by PayPal the order is moved from the GetOrder to the GetFinalizedOrder method. So if you call GetOrder - it will create a new order again but an empty one - so always use - HasOrder before using GetOrder.

    What is the error? The error should not be calling TeaCommerce.GetOrder() as this just creates a new order if non is existing. Try and look if it has something to do with the javascript and some invokeXslt that tries to invoke razro - which it cant do.

    Kind regards
    Anders

  • phil 58 posts 78 karma points
    Apr 16, 2012 @ 17:57
    phil
    0

    Thanks just needed to add an if (hasOrder == true) around my GetOrder code 

  • 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.

Please Sign in or register to post replies