Jump to content

get Admin Dir Path


Nishith Nesdiya
 Share

Recommended Posts

  • 7 years later...
On 11/29/2013 at 9:43 PM, El Patron said:

note when using _PS_ADMIN_DIR_, for newer releases this is only set when logged into back office, i.e. not set in front office

 

so you will want to check that it's available before using.


if (defined('_PS_ADMIN_DIR_'))

 

How can we get the Admin DIR if this constant is not defined? I had to use it from the hook ActionOrderStatusUpdate - where it's not defined if the customer makes an order from frontend and the status changes.

Edited by MikeCodes (see edit history)

Share this post


Link to post
Share on other sites

  • 1 month later...
On 4/12/2021 at 2:45 AM, MikeCodes said:

How can we get the Admin DIR if this constant is not defined? I had to use it from the hook ActionOrderStatusUpdate - where it's not defined if the customer makes an order from frontend and the status changes.

that post from 2013, now I only create module idea and one of my developers develops it.  I recommend posting a new question and not on an  eight year old post.

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More