From 6bf80219b3a4668bc15a1f4e7782bfb9484730bf Mon Sep 17 00:00:00 2001 From: magepeopleteam Date: Wed, 5 Oct 2022 06:31:39 +0000 Subject: [PATCH] v 3.7.5 released --- inc/mep_event_fw_meta.php | 3 ++- inc/mep_event_meta.php | 21 +++++++++++++++++++++ inc/mep_functions.php | 6 +++++- lib/classes/class-form-fields-generator.php | 11 ++++++++--- readme.txt | 9 ++++++++- woocommerce-event-press.php | 2 +- 6 files changed, 45 insertions(+), 7 deletions(-) diff --git a/inc/mep_event_fw_meta.php b/inc/mep_event_fw_meta.php index 557da72..75e40f2 100644 --- a/inc/mep_event_fw_meta.php +++ b/inc/mep_event_fw_meta.php @@ -199,6 +199,7 @@ function mep_fw_meta_boxs() 'item_id' => 'mep_day_content', 'name' => __('Content','mage-eventpress') ), + ), ), ) @@ -314,5 +315,5 @@ function mep_fw_meta_boxs() 'speakers_meta_boxs' => $email_body_meta_boxs ), ); - new AddMetaBox( $email_body_meta_args ); + // new AddMetaBox( $email_body_meta_args ); } \ No newline at end of file diff --git a/inc/mep_event_meta.php b/inc/mep_event_meta.php index b8fd2ef..2793b2c 100644 --- a/inc/mep_event_meta.php +++ b/inc/mep_event_meta.php @@ -51,6 +51,9 @@ class MP_Event_All_Info_In_One
  • +
  • + +
  • @@ -108,6 +111,7 @@ class MP_Event_All_Info_In_One +

    mp_event_tax($post_id); ?> +

    +
    + 'mep_event_cc_email_text', 'editor_height' => 625,) ); + ?> + Usable Dynamic tags: +
    Attendee Name:{name}
    + Event Name: {event}
    + Ticket Type: {ticket_type}
    + Event Date: {event_date}
    + Start Time: {event_time}
    + Full DateTime: {event_datetime} +
    cart->get_cart()); + // Loop through cart items checking if the product is already in cart - if (!is_admin() && !empty(WC()->cart->get_cart())) { + if (isset(WC()->cart) && !is_admin() && !empty(WC()->cart->get_cart())) { foreach (WC()->cart->get_cart() as $cart_item) { if ($cart_item['data']->get_id() == $product) { return false; diff --git a/lib/classes/class-form-fields-generator.php b/lib/classes/class-form-fields-generator.php index 685b069..c465d90 100755 --- a/lib/classes/class-form-fields-generator.php +++ b/lib/classes/class-form-fields-generator.php @@ -5897,6 +5897,12 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) { $value = isset( $option['value'] ) ? $option['value'] : ""; $value = !empty($value) ? $value : $default; $field_id = $id; + + + // $value = preg_replace('#^<\/p>|

     $#', '', $value); +// $value = preg_replace('/^[ \t]*[\r\n]+/m', '', $value); + + if(!empty($conditions)): $depends = ''; @@ -5906,7 +5912,7 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) { $type = isset($conditions['type']) ? $conditions['type'] : ''; $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : ''; $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : ''; - $like = isset($conditions['like']) ? $conditions['like'] : ''; + $like = isset($conditions['like']) ? $conitions['like'] : ''; $strict = isset($conditions['strict']) ? $conditions['strict'] : ''; $empty = isset($conditions['empty']) ? $conditions['empty'] : ''; $sign = isset($conditions['sign']) ? $conditions['sign'] : ''; @@ -5985,11 +5991,10 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {

    data-depends="[]" id="field-wrapper-" class=" field-wrapper field-wp_editor-wrapper field-wp_editor-wrapper-">
    -