Jump to content

Edit History

MikeCodes

MikeCodes

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.

MikeCodes

MikeCodes

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_'))

 

To to geht 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.

×
×
  • Create New...