From 290232781d0bd61ff595ab44f7a0ea28eedf622d Mon Sep 17 00:00:00 2001 From: magepeopleteam Date: Sun, 27 Dec 2020 07:41:32 +0000 Subject: [PATCH] v 3.4.0 --- css/admin_style.css | 3 ++ css/style.css | 2 +- inc/mep_functions.php | 53 ++++++++++++++++++++----- lib/classes/class-meta-box.php | 19 +-------- readme.txt | 22 +++++++++- templates/list/default.php | 12 ++++-- templates/single/extra_service_list.php | 8 +++- templates/single/ticket_type_list.php | 7 +++- woocommerce-event-press.php | 4 +- 9 files changed, 89 insertions(+), 41 deletions(-) diff --git a/css/admin_style.css b/css/admin_style.css index baa9f77..6143977 100644 --- a/css/admin_style.css +++ b/css/admin_style.css @@ -462,3 +462,6 @@ label.mp_event_virtual_type_des textarea{width:100%;} #mp_event_all_info_in_tab table button#mep_event_cc_email_text-tmce, #mp_event_all_info_in_tab table button#mep_event_cc_email_text-html{width:100px;} +.ppof-settings.ppof-metabox .notice.notice-warning.is-dismissible, .ppof-settings.ppof-metabox .notice { + display: none; +} \ No newline at end of file diff --git a/css/style.css b/css/style.css index 6e10678..590019f 100644 --- a/css/style.css +++ b/css/style.css @@ -314,7 +314,7 @@ h3.mep_list_date {font-size: 16px; font-style: italic;font-weight: bold;color: # .mage_grid_box .blank_div{margin: 0 20px 0 0;} .mage_grid_box .blank_div:last-child{margin: 0 0 15px 0;} .mep_event_grid_item .mep_list_event_details, -.mep_event_grid_item .mep_list_thumb{width: 100%} +.mep_event_grid_item .mep_list_thumb{width: 100%;min-height: 160px;} .mep_event_grid_item .mep_list_event_details{margin: 0;} .mep_event_grid_item .mep-list-header{padding: 0 0 0 10px;} .mep_event_grid_item .mep-list-footer { padding: 10px 0 10px 10px } diff --git a/inc/mep_functions.php b/inc/mep_functions.php index dc440a4..d134e65 100755 --- a/inc/mep_functions.php +++ b/inc/mep_functions.php @@ -190,7 +190,6 @@ function mep_get_all_tax_list($current_tax=null){ } - if (!function_exists('mep_event_get_order_meta')) { function mep_event_get_order_meta($item_id,$key){ global $wpdb; @@ -2411,9 +2410,13 @@ if (!function_exists('get_event_list_js')) { // price.closest('tr').find('.cart_total_price').html(sum + "â‚´"); }); - + jQuery('#rowtotal_').val(total); + total = total.toFixed(2); + let total_part=total.toString().split("."); + total_part[0] = total_part[0].replace(/\B(?=(\d{3})+(?!\d))/g, ""); + total=total_part.join(""); jQuery('#usertotal_').html("" + total + ""); - jQuery('#rowtotal_').val(total); + }).change(); //trigger change event on page load @@ -3043,13 +3046,17 @@ function mep_single_page_js_script($event_id){ }); //Fix 27.10.2020 Tony + jQuery('#rowtotal').val(total); total = total.toFixed(2); + let total_part=total.toString().split("."); + total_part[0] = total_part[0].replace(/\B(?=(\d{3})+(?!\d))/g, ""); + total=total_part.join(""); jQuery('#usertotal').html("" + total + ""); - jQuery('#rowtotal').val(total); + }).change(); //trigger change event on page load '.$email_content; } return $content; -} \ No newline at end of file +} + + + + +// function mep_get_event_upcomming_date($event_id){ +// $date = []; +// $event_start_datetime = get_post_meta($event_id,'event_start_datetime',true); +// $event_end_datetime = get_post_meta($event_id,'event_end_datetime',true); +// $event_multidate = get_post_meta($event_id,'mep_event_more_date',true); +// $event_std[] = array( +// 'event_std' => $event_start_datetime, +// 'event_etd' => $event_end_datetime +// ); +// $a = 1; +// foreach($event_multidate as $event_mdt){ +// $event_std[$a]['event_std'] = $event_mdt['event_more_start_date'].' '.$event_mdt['event_more_start_time']; +// $event_std[$a]['event_etd'] = $event_mdt['event_more_end_date'].' '.$event_mdt['event_more_end_time']; +// $a++; +// } +// $cn = 0; +// foreach($event_std as $_event_std){ +// $std = $_event_std['event_std']; +// $start_date = date('Y-m-d H:i:s',strtotime($_event_std['event_std'])); +// $end_date = date('Y-m-d',strtotime($_event_std['event_etd'])); +// if (strtotime(current_time('Y-m-d H:i')) < strtotime($std) && $cn == 0) { +// $date = $start_date; +// $cn++; +// } +// } +// } \ No newline at end of file diff --git a/lib/classes/class-meta-box.php b/lib/classes/class-meta-box.php index f31decc..760d1d4 100755 --- a/lib/classes/class-meta-box.php +++ b/lib/classes/class-meta-box.php @@ -39,23 +39,6 @@ if ( ! class_exists( 'AddMetaBox' ) ) { public function save_post( $post_id ) { - if (!isset($_POST['mep_event_ricn_text_nonce']) || !wp_verify_nonce($_POST['mep_event_ricn_text_nonce'], 'mep_event_ricn_text_nonce')) { - return; - } - - if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) { - return; - } - - if (!current_user_can('edit_post', $post_id)) { - return; - } - - - /** - * If the saving post is event then go on - */ - if (get_post_type($post_id) == 'mep_events') { $get_option_name = $this->get_option_name(); $post_id = $this->get_post_id(); @@ -87,7 +70,7 @@ if ( ! class_exists( 'AddMetaBox' ) ) { endforeach; endif; - } + } diff --git a/readme.txt b/readme.txt index d59bb93..edb6388 100644 --- a/readme.txt +++ b/readme.txt @@ -663,4 +663,24 @@ PHP Errors issue fixed WP Editor added into Event Confirmation Text Hook Added -05 Nov 2020* \ No newline at end of file +05 Nov 2020* + += 3.3.9 = +* Update Release: +PHP Errors issue fixed +WP Editor added into Event Confirmation Text +Hook Added + +28 Nov 2020* + += 3.4.0 = +* Update Release: +A new UI Added in the backend/Dashboard +CSS Issue fixed. +Hook Added +Some Bug fixed. +Password Protected Event feature enabled +Multi Currenncy Support feature added +Currency symbol issue fixed in the live calculation + +27 Dec 2020* \ No newline at end of file diff --git a/templates/list/default.php b/templates/list/default.php index 3d55834..4ec1915 100644 --- a/templates/list/default.php +++ b/templates/list/default.php @@ -1,5 +1,7 @@ @@ -9,10 +11,12 @@ $mep_hide_event_hover_btn_text = mep_get_option('mep_hide_event_hover_btn_text
-
-
+
+
- 0 && $recurring == 'no') { ?>
diff --git a/templates/single/extra_service_list.php b/templates/single/extra_service_list.php index 20e9a7d..9dcbbe4 100644 --- a/templates/single/extra_service_list.php +++ b/templates/single/extra_service_list.php @@ -12,6 +12,10 @@ $qty_type = $field['option_qty_type']; $total_sold = (int) mep_extra_service_sold($post_id, $field['option_name'], $event_date); $ext_left = ($total_extra_service - $total_sold); + + $actual_price=strip_tags(wc_price(mep_get_price_including_tax($post_id, $field['option_price']))); + $data_price=str_replace(get_woocommerce_currency_symbol(), '', $actual_price); + $data_price=(int)str_replace(wc_get_price_thousand_separator(), '', $data_price); ?> @@ -34,7 +38,7 @@
size="4" inputmode="numeric" type="text" class='extra-qty-box' name='event_extra_service_qty[]' data-price='' value='0' min="0" max=""> + ?> size="4" inputmode="numeric" type="text" class='extra-qty-box' name='event_extra_service_qty[]' data-price='' value='0' min="0" max="">
0) { ?> - + '> '> diff --git a/templates/single/ticket_type_list.php b/templates/single/ticket_type_list.php index 972804f..8f4c006 100644 --- a/templates/single/ticket_type_list.php +++ b/templates/single/ticket_type_list.php @@ -11,6 +11,9 @@ 0) { if ($qty_t_type == 'dropdown') { ?> +
0) { ?> - + diff --git a/woocommerce-event-press.php b/woocommerce-event-press.php index b111f52..e8d8a92 100644 --- a/woocommerce-event-press.php +++ b/woocommerce-event-press.php @@ -3,13 +3,13 @@ * Plugin Name: Woocommerce Events Manager * Plugin URI: http://mage-people.com * Description: A Complete Event Solution for WordPress by MagePeople.. - * Version: 3.3.9 + * Version: 3.4.0 * Author: MagePeople Team * Author URI: http://www.mage-people.com/ * Text Domain: mage-eventpress * Domain Path: /languages/ * WC requires at least: 3.0.9 - * WC tested up to: 4.7.1 + * WC tested up to: 4.8.0 */ if (!defined('ABSPATH')) {