I'm working on a E-commerce project with the Savoy theme in WP.
I add a custom button in the simple.php file. This button has to be enable only if the user is logged in.
Due the fact I'm not an expert of such thing can someone explain me what is the procedure for make something like this?
For be clear I will attach the file where I put this button and where I need to have to make this thing.
So to resume the button has to be disable if the user is not loggedin and if he or she hover the button should show a message like: please log in to use this button.
If you know where I can find examples this too will be nice.