• Resolved svenms

    (@svenms)


    Dears,

    Is it possible to include as Custom Order Fields value an Array?
    I tried the following code and the variable was never added to Orders Backend, while it was added correctly to DB (even get_post_meta was ok).

    $envios = array (
                     [0] => '990083935372'
                     [1] => 'correos'
                     [2] => 'something...correoschile_etiquetas/990083935372.pdf'
                   );
    update_post_meta( $order_id, 'tiene_envio',  $envios );

    Then I tried to include other value like:
    update_post_meta( $order_id, 'cualquier_cosa', 'jajajaj' );

    And it worked just right on Order backend. So my only guess is it not possible to add arrays as Customs Order value, is that right?

    Best regards,

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    Hi there,

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Plugin Support con

    (@conschneider)

    Engineer

    Hi there,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Kind regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Fields Orders adding Array’ is closed to new replies.