I am working on an event registration. We need to hide certain price set line items based on various factors. Most are based on previous field response but there is one line item that needs to be hidden if user is logged in. I found this post: https://wordpress.stackexchange.com/questions/69814/check-if-user-is-logged-in-using-jquery
But can't seem to get it to work in my custom template. I probably have some syntax wrong.
Any thoughts or a alternate solution would be appreciated.