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
しかし、私のカスタムテンプレートで動作するように見えることはできません。私はおそらくいくつかの構文が間違っています。
どのような考えや代替の解決策が評価されます。
ありがとう
So I’ve done something similar (I used the group a user was a
part of vs just a user) with a template ‘extra’ file that contained
javescript and a quick call to the API. Not sure if this is the
ideal method but it worked to show/hide some content.
https://civicrm.org/blog/dave-greenberg/now-its-easier-add-custom-behaviors-templates
Javascript Contact API – how do I ‘do something’ with
results