Jump to content
thirty bees forum

Recommended Posts

Posted

Dear, i am making a override from carrier, but in then i will check if the load is from front office, or backoffice.

How i can get this information in override? Thanks Mauro

Posted

You can simply check if _PS_ADMIN_DIR_ is defined. Alternatively, you can look what controller is currently in use - Context::getInstance()->controlller.

Can I ask what you are trying to achieve? It seems really strange that the logic override should behave differently for backed/frontend

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