• Resolved 4lxndr

    (@4lxndr)


    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.php file. Within the function mep_add_custom_fields_text_to_order_items it adds the item meta $item->add_meta_data('Date', get_mep_datetime($cart_date, 'date-time-text')); which fails, because $cart_date is 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.

    • This topic was modified 6 years, 1 month ago by 4lxndr.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Item Meta “Date” missing’ is closed to new replies.