Not sure if this is what you need.
[
{"caption":"Algemeen", "fields": [
{"field":"title","caption":"Titel","inputTV":"Titel"},
{"field":"description","caption":"Beschrijving","inputTV":"Beschrijving"},
{"field":"price","caption":"Prijs","inputTV":"Prijs"}
]}
]
this is the call:
<ul>[[getImageList? &tvname=`Burgers` &tpl=`tLoadlist`]]</ul>
and then this is tLoadlist:
<li>
<p>
<strong>[[+title]]</strong>
[[+description]]
[[+price]]
</p>
<select name="amount[[+MIGX_id]]">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
</li>
Okay the error logs seems to be usefull.
This is from the method that kinds of works..
[2018-09-06 12:06:43] (ERROR @ /www/core/model/modx/modparser.class.php : 540) Could not find snippet with name product_Kipschnitzel.
[2018-09-06 12:06:43] (ERROR @ /www/core/model/modx/modparser.class.php : 540) Could not find snippet with name product_Varkensschnitzel.
This is from the method with the hook processOrder.. (I changed the code in tLoadlist back to 'product_[[+title]]' to make it all match)
[2018-09-08 01:37:03] (ERROR @ /www/core/model/modx/modcachemanager.class.php : 344) Error caching lexicon topic lexicon/en/core/default
[2018-09-08 01:37:22] (ERROR @ /www/core/cache/includes/elements/modsnippet/32.include.cache.php : 22) There were no values matching product_
I'm thinking how to fix it.
What do you think?