-
☆ A M B ☆
- 24,524 Posts
I would imagine that the javascript requires that value to be in quotes like any other string; ’[[*shoplink]]’
That stopped the error but the placeholder variable wasn’t passing through.
Is there an easier way to see if a placeholder is null in a chunk?
-
☆ A M B ☆
- 24,524 Posts
Well, [[*...]] is not a placeholder. [[+...]] is the tag for placeholders.
I think I may be using the wrong terminology. I was trying to access a template variable. I ended up having to pass the variable through the snippet such as [[!Snippet?phpvariable=[[*templatevariable]]]]
Think I finally found this solution in an old thread of yours.
Thanks for the help!