Item Meta “Date” missing
-
Hello, first of all great plugin, but:
I’ve created an event and bought it. I would expect that the mail contains the event date but it was missing. After digging in the code i found the problem in the
mep_extra_price.phpfile. Within the functionmep_add_custom_fields_text_to_order_itemsit adds the item meta$item->add_meta_data('Date', get_mep_datetime($cart_date, 'date-time-text'));which fails, because$cart_dateis an array. The result is an empty database entry and therefore the information is missing in the mail and order detail view. I fixed it for me with a custom action and removed yours. In which cases is$cart_date`an array and in which cases its just a string?In addition to this i have to say that your code is dirty as ****. No code style, tons of breaks, tons of unused variables. I really like the work you have done but this is kinda messy and requires some work. It makes it easier for others to understand the code and develop more functions based on the plugin.
Cheers.
The topic ‘Item Meta “Date” missing’ is closed to new replies.