I looked up the code for passing a template variable to a snippet and from previous forum threads it looks like the format is:
[[snippet_name? ¶meter=`[*template_variable*]` ]]
However, that does not work for me. In my case, the snippet name is format_price and the template variable is product_price:
[[format_price? &valuein=`[*product_price*]` ]]
In my snippet at this point, all I am trying to do is return the value that was passed in. If that works, then I can figure out the formatting.
My snippet. Pretty basic.
What is getting rendered on my page is [*product_price*] rather than the value that was passed in. It is as if the whole thing is being treated as a string rather than getting translated into the value.
Any help would be appreciated.