Jump to content

[solved] how to determine if context is front-office/back-office


Recommended Posts

I'm trying to prevent a specific carrier from being ever displayed to customers through the front office. I only want this carrier to be displayed in the Order creation through the back-office.


In order to do this, I thought about overriding the function that lists carriers in the Carrier class. I would simply filter out this carrier if the piece of code is called from the front office, and let it through if the code is called from the back office.


I would have expected the Context variable to hold this information, but I can't find any mean to do that. Can anyone point me in the right direction?


Thank you in advance,

André Lanouette

Link to comment
Share on other sites

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

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...