• 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

    (@algolplus)

    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.