Adding custom query
Posted: Sat Sep 07, 2013 7:56 am
I want to do three things:
1. add a query to check if a user has an address in my database
2. block the checkout process if there is not an address
3. add a notification to the top of all pages (logged in users) if there is no address
I want to do this because I have a Facebook Login plugin, and Facebook does offer addresses. So when someone signs up via Facebook, I do not get an address for them. Since everything is run from index.php, one correctly placed query can make this happen. Does anyone know where to place this? Also, what is the name of the logged in session?
1. add a query to check if a user has an address in my database
2. block the checkout process if there is not an address
3. add a notification to the top of all pages (logged in users) if there is no address
I want to do this because I have a Facebook Login plugin, and Facebook does offer addresses. So when someone signs up via Facebook, I do not get an address for them. Since everything is run from index.php, one correctly placed query can make this happen. Does anyone know where to place this? Also, what is the name of the logged in session?