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?
Thanks. Where would be a good place to put this? $this is not called in index.php and gives me fatal errors every time I try to add it in random spots.
Ive never used functions and objects in PHP so this is a little outside my range.
Ive never used functions and objects in PHP so this is a little outside my range.
Who is online
Users browsing this forum: No registered users and 92 guests