Nils-H Posted August 6, 2013 Share Posted August 6, 2013 I have a module that will send an email when the order status is set to shipped. What is the proper way to detect this? The way I'm currently doing it is to create a module that registers a hook with "actionOrderStatusPostUpdate", and check the "newOrderStatus" to see if it has the id '4', which corresponds to "shipped". However, this does seem a little fragile, in case the id of this status changes. I also notice that the order status has a "shipped" property, but there are multiple order statuses with this property set to "true", so that wouldn't work either. Is there a better way to do this detection? Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now