version 3.5.7 released
This commit is contained in:
parent
9a49767315
commit
d8942f346d
|
@ -639,7 +639,7 @@ ul.mep-social-share {
|
|||
}
|
||||
|
||||
ul.mep-social-share li {
|
||||
margin: 0 8px 0 0;
|
||||
margin: 0 15px 0 0;
|
||||
}
|
||||
|
||||
/********Add to calender ***********/
|
||||
|
|
|
@ -257,7 +257,7 @@ function mep_checkout_validation($posted)
|
|||
|
||||
if ($ticket_qty > $available_seat) {
|
||||
|
||||
wc_add_notice("Sorry, $type not available. Total available $type is $available_seat of $event_name on $event_date_txt but you select $ticket_qty . Please Try Again", 'error');
|
||||
wc_add_notice("Sorry, $type not availabe. Total available $type is $available_seat of $event_name on $event_date_txt but you select $ticket_qty . Please Try Again", 'error');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -960,6 +960,15 @@ if (!function_exists('mep_attendee_status_update')) {
|
|||
change_extra_service_status($order_id, 'trash', 'publish', 'failed');
|
||||
do_action('mep_wc_order_status_change', $order_status, $event_id, $order_id);
|
||||
}
|
||||
|
||||
|
||||
$seat_left = mep_count_total_available_seat($event_id);
|
||||
update_post_meta($event_id,'mep_total_seat_left',$seat_left);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
} // End of Post Type Check
|
||||
} // End order item foreach
|
||||
} // End Function
|
||||
|
@ -1682,7 +1691,7 @@ if (!function_exists('mep_event_list_price')) {
|
|||
$price_arr[] = array_key_exists('option_price_t',$ticket) ? $ticket['option_price_t'] : null;
|
||||
}
|
||||
}
|
||||
$price_arr = sizeof($price_arr) > 0 ? $price_arr : [0];
|
||||
|
||||
return $type == 'price' ? wc_price(min($price_arr)) : count($price_arr);
|
||||
}
|
||||
}
|
||||
|
@ -1818,14 +1827,21 @@ if (!function_exists('mep_get_event_city')) {
|
|||
|
||||
if (!function_exists('mep_get_total_available_seat')) {
|
||||
function mep_get_total_available_seat($event_id, $event_meta) {
|
||||
$total_seat_left = get_post_meta($event_id,'mep_total_seat_left',true) ? get_post_meta($event_id,'mep_total_seat_left',true) : mep_count_total_available_seat($event_id);
|
||||
return esc_html($total_seat_left);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (!function_exists('mep_count_total_available_seat')) {
|
||||
function mep_count_total_available_seat($event_id) {
|
||||
$total_seat = mep_event_total_seat($event_id, 'total');
|
||||
$total_resv = mep_event_total_seat($event_id, 'resv');
|
||||
$total_sold = mep_ticket_sold($event_id);
|
||||
$total_left = $total_seat - ($total_sold + $total_resv);
|
||||
return esc_html($total_left);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (!function_exists('mep_get_event_total_available_seat')) {
|
||||
function mep_get_event_total_available_seat($event_id, $date) {
|
||||
|
@ -4111,7 +4127,7 @@ function mep_get_event_add_cart_sec($post_id) {
|
|||
<!--The Add to cart button table start Here-->
|
||||
<table class='table table-bordered mep_event_add_cart_table'>
|
||||
<tr>
|
||||
<td align="left" class='total-col'><?php echo mep_get_option('mep_quantity_text', 'label_setting_sec') ? mep_get_option('mep_quantity_text', 'label_setting_sec') : esc_html__('Quantity:', 'mage-eventpress');
|
||||
<td style='text-align:left;' class='total-col'><?php echo mep_get_option('mep_quantity_text', 'label_setting_sec') ? mep_get_option('mep_quantity_text', 'label_setting_sec') : esc_html__('Quantity:', 'mage-eventpress');
|
||||
if ($mep_event_ticket_type) { ?>
|
||||
<input id="quantity_5a7abbd1bff73" class="input-text qty text extra-qty-box" step="1" min="1" name="quantity" value="1" title="Qty" size="4" pattern="[0-9]*" inputmode="numeric" type="hidden">
|
||||
<span id="ttyttl"></span>
|
||||
|
@ -4120,7 +4136,7 @@ function mep_get_event_add_cart_sec($post_id) {
|
|||
<span id="usertotal"></span>
|
||||
</span>
|
||||
</td>
|
||||
<td align="right">
|
||||
<td style='text-align:right;'>
|
||||
<input type="hidden" name="mep_event_location_cart" value="<?php trim(mep_ev_location_ticket($post_id, $event_meta)); ?>">
|
||||
<input type="hidden" name="mep_event_date_cart" value="<?php do_action('mep_event_date'); ?>">
|
||||
<button type="submit" name="add-to-cart" value="<?php echo esc_attr($cart_product_id); ?>" class="single_add_to_cart_button button alt btn-mep-event-cart"><?php esc_html_e(mep_get_label($post_id, 'mep_cart_btn_text', 'Register This Event'), 'mage-eventpress'); ?> </button>
|
||||
|
@ -4165,11 +4181,6 @@ add_action('mep_after_social_share_list', 'mep_custom_share_btn', 10, 1);
|
|||
if (!function_exists('mep_custom_share_btn')) {
|
||||
function mep_custom_share_btn($event_id) {
|
||||
?>
|
||||
<li>
|
||||
<a href="https://www.linkedin.com/shareArticle?mini=true&url=<?php echo get_the_permalink($event_id); ?>&title=<?php echo mep_html_chr(get_the_title($event_id)) . ' '; ?>&summary=<?php echo esc_html(get_the_excerpt($event_id)); ?>&source=web" target="_blank">
|
||||
<i class="fab fa-linkedin"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://api.whatsapp.com/send?text=<?php echo mep_html_chr(get_the_title($event_id)) . ' '; ?><?php echo get_the_permalink($event_id); ?>" target="_blank">
|
||||
<i class="fab fa-whatsapp"></i>
|
||||
|
@ -4180,7 +4191,6 @@ function mep_custom_share_btn($event_id) {
|
|||
<i class="fa fa-envelope"></i>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
@ -4204,7 +4214,7 @@ add_filter('use_block_editor_for_post_type', 'mep_disable_gutenberg', 10, 2);
|
|||
if (!function_exists('mep_disable_gutenberg')) {
|
||||
function mep_disable_gutenberg($current_status, $post_type) {
|
||||
$user_status = mep_get_option('mep_disable_block_editor', 'general_setting_sec', 'yes');
|
||||
// Use your post type key instead of 'product'
|
||||
// Use your post type key instead of 'mep_events'
|
||||
if ($post_type === 'mep_events' && $user_status == 'yes')
|
||||
return false;
|
||||
return $current_status;
|
||||
|
@ -4748,6 +4758,27 @@ if (!function_exists('mep_flash_permalink_once')) {
|
|||
$wp_rewrite->flush_rules();
|
||||
update_option('mep_flash_event_permalink', 'completed');
|
||||
}
|
||||
|
||||
if (get_option('mep_event_seat_left_data_update_01') != 'completed') {
|
||||
|
||||
$args = array(
|
||||
'post_type' => 'mep_events',
|
||||
'posts_per_page' => -1
|
||||
);
|
||||
|
||||
$qr = new WP_Query($args);
|
||||
foreach ($qr->posts as $result) {
|
||||
$post_id = $result->ID;
|
||||
$seat_left = mep_count_total_available_seat($post_id);
|
||||
update_post_meta($post_id,'mep_total_seat_left',$seat_left);
|
||||
}
|
||||
update_option('mep_event_seat_left_data_update_01', 'completed');
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
add_action('admin_init', 'mep_flash_permalink_once');
|
|
@ -48,11 +48,11 @@ function mep_event_calender()
|
|||
while ($loop->have_posts()) {
|
||||
$loop->the_post();
|
||||
$event_meta = get_post_custom(get_the_id());
|
||||
$event_dates = mep_get_event_dates_arr(get_the_id());
|
||||
$event_dates = mep_get_event_dates_arr(get_the_id());
|
||||
|
||||
foreach ($event_dates as $_dates) {
|
||||
?>
|
||||
{
|
||||
foreach ($event_dates as $_dates) {
|
||||
?>
|
||||
{
|
||||
start : '<?php echo date_i18n('Y-m-d H:i', strtotime($_dates['start'])); ?>',
|
||||
end : '<?php echo date_i18n('Y-m-d H:i', strtotime($_dates['end'])); ?>',
|
||||
title : '<?php the_title(); ?>',
|
||||
|
@ -61,8 +61,8 @@ function mep_event_calender()
|
|||
color : '#000',
|
||||
data : {}
|
||||
},
|
||||
<?php
|
||||
}
|
||||
<?php
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
16
readme.txt
16
readme.txt
|
@ -2,8 +2,8 @@
|
|||
Contributors: magepeopleteam, aamahin
|
||||
Tags: event, woocomerce events manager, events manager, Wordpress Events plugin, Events plugin, wp events
|
||||
Requires at least: 5.3
|
||||
Stable tag: 3.5.6
|
||||
Version: 3.5.6
|
||||
Stable tag: 3.5.7
|
||||
Version: 3.5.7
|
||||
Tested up to: 5.8.1
|
||||
WC requires at least: 3.0
|
||||
WC tested up to: 5.8
|
||||
|
@ -805,4 +805,14 @@ Event Duplicate Warning issue fixed
|
|||
Style Issue fixed
|
||||
Bug Fixed
|
||||
more....
|
||||
28 Dec 2021*
|
||||
28 Dec 2021*
|
||||
|
||||
= 3.5.7=
|
||||
* Update Release:
|
||||
Winter & Spring date missing issue fixed
|
||||
Slow Query Issue fixed
|
||||
New Hook Added
|
||||
Style Issue fixed
|
||||
Bug Fixed
|
||||
more....
|
||||
21 Jan 2022*
|
|
@ -15,7 +15,7 @@ $date = get_post_meta($event_id, 'event_upcoming_datetime', true);
|
|||
>
|
||||
<?php do_action('mep_event_spring_list_loop_header', $event_id); ?>
|
||||
<div class="mep_list_date_wrapper">
|
||||
<h4 class='mep_spring_list_date'> <?php echo esc_html(get_mep_datetime($start_date_format, 'date')); ?></h4>
|
||||
<h4 class='mep_spring_list_date'> <?php echo esc_html(get_mep_datetime($date, 'date')); ?></h4>
|
||||
</div>
|
||||
|
||||
<div class="mep_list_event_details mep_list_details_col_one">
|
||||
|
@ -24,7 +24,7 @@ $date = get_post_meta($event_id, 'event_upcoming_datetime', true);
|
|||
|
||||
<span class="mep_spring_event_time"><i class="far fa-clock"></i> <?php echo esc_html(get_mep_datetime($start_time_format, 'time')); ?> - <?php echo esc_html(get_mep_datetime($end_time_format, 'time')); ?></span>
|
||||
<span class='mep_spring_event_location'><i class="fas fa-map-marker-alt"></i> <?php mep_get_event_city($event_id); ?></span>
|
||||
<span class="mep_spring_event_date"><i class="far fa-calendar-alt"></i> <?php echo esc_html(get_mep_datetime($start_date_format, 'date')); ?> - <?php echo esc_html(get_mep_datetime($end_date_format, 'date')); ?></span>
|
||||
<span class="mep_spring_event_date"><i class="far fa-calendar-alt"></i> <?php echo esc_html(get_mep_datetime($date, 'date')); ?> - <?php echo esc_html(get_mep_datetime($date, 'date')); ?></span>
|
||||
|
||||
</a>
|
||||
<?php do_action('mep_event_list_loop_footer', $event_id); ?>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* Plugin Name: Event Manager and Tickets Selling Plugin for WooCommerce
|
||||
* Plugin URI: http://mage-people.com
|
||||
* Description: A Complete Event Solution for WordPress by MagePeople..
|
||||
* Version: 3.5.6
|
||||
* Version: 3.5.7
|
||||
* Author: MagePeople Team
|
||||
* Author URI: http://www.mage-people.com/
|
||||
* Text Domain: mage-eventpress
|
||||
|
|
Loading…
Reference in New Issue