Description
This formula returns the nutrition value table as a string for Synfoxx.
Formula(s)
PHP
{=NUTRITIONTABLE(ID ingredient list;"ID nutrition table";Portion;"GTIN";"ID nutrient editor")}
Result
-
String
Parameters
Parameter
|
Contents
|
Format
|
Default value
|
Explanation
|
|---|---|---|---|---|
|
ID ingredient list |
ID of the attribute containing the ingredient list |
Integer |
|
|
|
ID nutrition table |
ID of the configuration attribute of the nutrition table |
Integer |
"" |
Leave the parameter blank or set the string to ‘null’ to display all nutritional values in the table. |
|
Portion |
Portion in grams |
Integer |
"100" |
|
|
GTIN |
GTIN of the product |
String |
|
|
|
ID nutrient editor |
ID of the attribute containing the nutrition editor |
Integer |
0 |
|