Hi,
I encounter the following issue;
I have made a new Class that derives from OrderTemplateExtender and overrides the "ExtendTemplate" method.
During the order process we want to monitor each step in the process and take certain actions. This works quite well, and no problems so far.
We have an action on step 6 that changes the state of the order, to a specific state.
Now I noticed that this "ExtendTemplate" method is also triggered when a user logs in on the website and goes to the Customer Center to view his orders.
For every order the user has made in the past this method gets triggered and the value of Order.StepNum is 6.
This is currently a problem for me because the template extender I made decides to change the orderstate.
I wonder, is it by design that the OrderTemplateTextender.ExtendTemplate also triggers when viewing the orders through the order history of the Customer Center?
If so, how can I tell the difference between an order that is really in the order process on step 6 or when the order is viewed through the order history of the Customer Center?
Kind Regards,
Emil
Developer forum
OrderTemplateExtender.ExtendTemplate issue
Replies
You must be logged in to post in the forum