I am working a SC customer (not SCA). In the templ...
# suitecommerce
v
I am working a SC customer (not SCA). In the templates that have context variables (i.e. {{name}}). How do I find what value in the that is referring to? In SCA, the JS would show the wat value that context variable was pulling from. I want to know what facet fields I have to expose to show these values.
s
The context variables are whatever the
getContext()
function of the view that uses the template passes to it. The template should list in the comments at the bottom all of the variables you can expect to work with. If you want to simply dump out a list to the console, then you can do
{{log this}}
v
@Steve Goldberg Thank you for your reply. How do I know what view specifies as the context variable when we are using SuiteCommerce (not advanced)
s
Not sure I follow. The context variable is always the same — it is
getContext
in the view and
this
in the template?