Hi all
As far as I understand, when you create a customTV (input and output types) its value is stored as a JSON array like this (dummy code for an hypothetical item stored in custom DB)
{"item_id":123, "item_name":"dummy_prod","item_url":"url/to/file"}
My question is : is it possible to have a tv value stored as an array of arrays ? Something like
[
{"item_id":123, "item_name":"dummy_prod","item_url":"url/to/file"}
{"item_id":13, "item_name":"other_prod","item_url":"url/to/file"}
{"item_id":456, "item_name":"other_prod","item_url":"url/to/file"}
...
]
and then output each item in a placeholer, something like '[ [+itemX] ]' ,where X is the index of the item in the tv value array
I Hope I'm clear...
Other question, around this... All the custom TVs I've looked in the code, seem to use only one form as input for the TV.
Is it possible to use several forms (each form with its own id, for each product) and then aggregate their respectives inputs in the tv value as array of arrays ?
Cheers