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
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.
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
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
Thanks just needed to add an if (hasOrder == true) around my GetOrder code
is working on a reply...