Changes

Jump to navigation Jump to search
2 bytes added ,  21:30, 19 October 2016
Line 1,762: Line 1,762:  
==== See editing a product for details on fields ====
 
==== See editing a product for details on fields ====
 
==== Posting several values for a field ====
 
==== Posting several values for a field ====
When adding values, send to the field labels as comma separated values that are canonicalized and added to the _tags array
+
When adding values, send to the field labels as comma separated values that are canonicalised and added to the _tags array
 
<pre>labels = "labelA, labelB"</pre>
 
<pre>labels = "labelA, labelB"</pre>
 
Reading back, use labels_tags to get an array of labels
 
Reading back, use labels_tags to get an array of labels
Line 1,816: Line 1,816:  
You can set the main language of the product.<br>
 
You can set the main language of the product.<br>
 
<pre>lang=fr</pre><br><br>
 
<pre>lang=fr</pre><br><br>
(NOT LIVE YET)In the case of a multilingual product, you can specify the main language of the product, and you can then specify values and images for different languages by suffixing the language code to the other fields.
+
(NOT LIVE YET)
 +
In the case of a multilingual product, you can specify the main language of the product, and you can then specify values and images for different languages by suffixing the language code to the other fields.
    
==== Add the nutrition facts ====
 
==== Add the nutrition facts ====
===== Indicate the absence of nutrition facts=====
+
===== Indicate the absence of nutrition facts =====
 
<pre>no_nutriments : indicates if the nutrition facts are indicated on the food label</pre>
 
<pre>no_nutriments : indicates if the nutrition facts are indicated on the food label</pre>
 
===== Add nutrition facts values, units and base =====
 
===== Add nutrition facts values, units and base =====

Navigation menu