• Dear Saravana Kumar K,

    I’m using your plugin which I think is great but I’m having some problmes. I’m trying to read the order details stored in wp_woocommerce_order_itemmeta but something is wrong.

    I can access some details like Name and Surname with $product->Nombre or $product->Apellidos but there are other fields that have been created with spaces in the database that cannot be read. I think I’ve never seen meta_keys with spaces, maybe the plugin is using the Field Label instead of the Field Name?

    You can see more details in this screenshot:

    I’m using 1.4.0 plugin version.

    Regards.

Viewing 1 replies (of 1 total)
  • Plugin Author Saravana Kumar K

    (@mycholan)

    Yes you are right, we are using Field’s Label instead of Name, Earlier we used name only but change to Label as Field’s name is not that descriptive.

    But still you can access those values (php does allows space in keys), You may have to convert order line item object to associative array, then you can access any properties with space, like this $item_obj["First Name"].

Viewing 1 replies (of 1 total)
  • The topic ‘Error allowing spaces in meta_keys?’ is closed to new replies.