New Zenner
- Join Date:
- Jul 2012
- Posts:
- 45
- Plugin Contributions:
- 0
Where is $_SESSION['customer_id'] being set?
Good day and hello, everyone;
After the last hour of looking through the documentation, I am having trouble locating where exactly $_SESSION['customer_id'] is being set.
The reason that I am asking is this - I have a need to to query the customer's address book based upon a different variable, so to minimize hacking and breaking, I essentially want to go set $_SESSION['agency_id'] to be based upon a different value pulled from the customer's table and then go back and have the address book query based upon that value. I would like to do that right below where $_SESSION['customer_id'] is being set.
The supporting code has not been written as of yet; but the pseudocode is as follows:
Customer logs in, customer's agency key is pulled from the customer's table and loaded into the session variable, at checkout, customer's address book is loaded based upon the agency query and customer selects which location within said agency he or she wants his or her order delivered to.
Regards,
Jeremiah