Title: JSON structure for &#8220;select&#8221; fields
Last modified: July 13, 2018

---

# JSON structure for “select” fields

 *  [sparrowm](https://wordpress.org/support/users/sparrowm/)
 * (@sparrowm)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/json-structure-for-select-fields/)
 * Hi,
    Before we bought the pro version, we tested the free version and noticed
   one problem: If product from the shop have “select field” (ex. customer can chose
   different fabric) then in the json structure each option from that field is placed
   separately with a different field name: {“fabric_test”:””,”fabric_test2″:”Marinpolyester(
   155g) +”,”fabric_test3″:””}
 * Selected fabric is filled, the rest is empty.
    Can we somehow simplify it to 
   one field?
 * Best regards
    Michael

Viewing 1 replies (of 1 total)

 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/json-structure-for-select-fields/#post-10491861)
 * hi Michael
 * please, replace SELECTFIELD with your field name.
    thanks, Alex
 *     ```
       add_filter('woe_get_order_product_value_SELECTFIELD', function ($value, $order, $item, $product) {
       	return join(" ", array_values($value));
       }, 10, 4);
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘JSON structure for “select” fields’ is closed to new replies.

 * ![](https://ps.w.org/woo-order-export-lite/assets/icon-256x256.png?rev=1365554)
 * [Advanced Order Export For WooCommerce](https://wordpress.org/plugins/woo-order-export-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-order-export-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-order-export-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-order-export-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-order-export-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-order-export-lite/reviews/)

## Tags

 * [export](https://wordpress.org/support/topic-tag/export/)
 * [json](https://wordpress.org/support/topic-tag/json/)
 * [select option](https://wordpress.org/support/topic-tag/select-option/)
 * [structure](https://wordpress.org/support/topic-tag/structure/)

 * 1 reply
 * 2 participants
 * Last reply from: [algol.plus](https://wordpress.org/support/users/algolplus/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/json-structure-for-select-fields/#post-10491861)
 * Status: not resolved