v 3.4.0
This commit is contained in:
parent
8540a0d1c6
commit
290232781d
|
@ -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-tmce,
|
||||||
#mp_event_all_info_in_tab table button#mep_event_cc_email_text-html{width:100px;}
|
#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;
|
||||||
|
}
|
|
@ -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{margin: 0 20px 0 0;}
|
||||||
.mage_grid_box .blank_div:last-child{margin: 0 0 15px 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_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_event_details{margin: 0;}
|
||||||
.mep_event_grid_item .mep-list-header{padding: 0 0 0 10px;}
|
.mep_event_grid_item .mep-list-header{padding: 0 0 0 10px;}
|
||||||
.mep_event_grid_item .mep-list-footer { padding: 10px 0 10px 10px }
|
.mep_event_grid_item .mep-list-footer { padding: 10px 0 10px 10px }
|
||||||
|
|
|
@ -190,7 +190,6 @@ function mep_get_all_tax_list($current_tax=null){
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (!function_exists('mep_event_get_order_meta')) {
|
if (!function_exists('mep_event_get_order_meta')) {
|
||||||
function mep_event_get_order_meta($item_id,$key){
|
function mep_event_get_order_meta($item_id,$key){
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
|
@ -2411,9 +2410,13 @@ if (!function_exists('get_event_list_js')) {
|
||||||
// price.closest('tr').find('.cart_total_price').html(sum + "â‚´");
|
// price.closest('tr').find('.cart_total_price').html(sum + "â‚´");
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
jQuery('#usertotal_<?php echo $id; ?>').html("<?php if($currency_pos=="left"){ echo get_woocommerce_currency_symbol(); } ?>" + total + "<?php if($currency_pos=="right"){ echo get_woocommerce_currency_symbol(); } ?>");
|
|
||||||
jQuery('#rowtotal_<?php echo $id; ?>').val(total);
|
jQuery('#rowtotal_<?php echo $id; ?>').val(total);
|
||||||
|
total = total.toFixed(2);
|
||||||
|
let total_part=total.toString().split(".");
|
||||||
|
total_part[0] = total_part[0].replace(/\B(?=(\d{3})+(?!\d))/g, "<?php echo wc_get_price_thousand_separator(); ?>");
|
||||||
|
total=total_part.join("<?php echo wc_get_price_decimal_separator(); ?>");
|
||||||
|
jQuery('#usertotal_<?php echo $id; ?>').html("<?php if($currency_pos=="left"){ echo get_woocommerce_currency_symbol(); } ?>" + total + "<?php if($currency_pos=="right"){ echo get_woocommerce_currency_symbol(); } ?>");
|
||||||
|
|
||||||
|
|
||||||
}).change(); //trigger change event on page load
|
}).change(); //trigger change event on page load
|
||||||
|
|
||||||
|
@ -3043,13 +3046,17 @@ function mep_single_page_js_script($event_id){
|
||||||
|
|
||||||
});
|
});
|
||||||
//Fix 27.10.2020 Tony
|
//Fix 27.10.2020 Tony
|
||||||
|
jQuery('#rowtotal').val(total);
|
||||||
total = total.toFixed(2);
|
total = total.toFixed(2);
|
||||||
|
let total_part=total.toString().split(".");
|
||||||
|
total_part[0] = total_part[0].replace(/\B(?=(\d{3})+(?!\d))/g, "<?php echo wc_get_price_thousand_separator(); ?>");
|
||||||
|
total=total_part.join("<?php echo wc_get_price_decimal_separator(); ?>");
|
||||||
jQuery('#usertotal').html("<?php if ($currency_pos == "left" || $currency_pos == 'left_space') {
|
jQuery('#usertotal').html("<?php if ($currency_pos == "left" || $currency_pos == 'left_space') {
|
||||||
echo get_woocommerce_currency_symbol();
|
echo get_woocommerce_currency_symbol();
|
||||||
} ?>" + total + "<?php if ($currency_pos == "right" || $currency_pos == 'right_space') {
|
} ?>" + total + "<?php if ($currency_pos == "right" || $currency_pos == 'right_space') {
|
||||||
echo get_woocommerce_currency_symbol();
|
echo get_woocommerce_currency_symbol();
|
||||||
} ?>");
|
} ?>");
|
||||||
jQuery('#rowtotal').val(total);
|
|
||||||
}).change(); //trigger change event on page load
|
}).change(); //trigger change event on page load
|
||||||
<?php
|
<?php
|
||||||
$mep_event_ticket_type = get_post_meta($event_id, 'mep_event_ticket_type', true) ? get_post_meta($event_id, 'mep_event_ticket_type', true) : array();
|
$mep_event_ticket_type = get_post_meta($event_id, 'mep_event_ticket_type', true) ? get_post_meta($event_id, 'mep_event_ticket_type', true) : array();
|
||||||
|
@ -3238,12 +3245,6 @@ function mep_elementor_get_tax_term( $tax ) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// add_action('init','price_test');
|
|
||||||
|
|
||||||
function price_test(){
|
|
||||||
echo wc_get_price_including_tax( 408, 100);
|
|
||||||
die();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function mep_get_price_including_tax( $event, $price, $args = array() ) {
|
function mep_get_price_including_tax( $event, $price, $args = array() ) {
|
||||||
|
@ -3484,3 +3485,33 @@ function mep_virtual_join_info_event_email_text($content,$event_id,$order_id){
|
||||||
}
|
}
|
||||||
return $content;
|
return $content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// 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++;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
|
@ -39,23 +39,6 @@ if ( ! class_exists( 'AddMetaBox' ) ) {
|
||||||
|
|
||||||
|
|
||||||
public function save_post( $post_id ) {
|
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();
|
$get_option_name = $this->get_option_name();
|
||||||
$post_id = $this->get_post_id();
|
$post_id = $this->get_post_id();
|
||||||
|
@ -87,7 +70,7 @@ if ( ! class_exists( 'AddMetaBox' ) ) {
|
||||||
endforeach;
|
endforeach;
|
||||||
|
|
||||||
endif;
|
endif;
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
20
readme.txt
20
readme.txt
|
@ -664,3 +664,23 @@ WP Editor added into Event Confirmation Text
|
||||||
Hook Added
|
Hook Added
|
||||||
|
|
||||||
05 Nov 2020*
|
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*
|
|
@ -1,4 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
$day = mep_get_event_upcomming_date($event_id,'day');
|
||||||
|
$month = mep_get_event_upcomming_date($event_id,'month');
|
||||||
$recurring = get_post_meta($event_id, 'mep_enable_recurring', true) ? get_post_meta($event_id, 'mep_enable_recurring', true) : 'no';
|
$recurring = get_post_meta($event_id, 'mep_enable_recurring', true) ? get_post_meta($event_id, 'mep_enable_recurring', true) : 'no';
|
||||||
$mep_hide_event_hover_btn = mep_get_option('mep_hide_event_hover_btn', 'general_setting_sec', 'no');
|
$mep_hide_event_hover_btn = mep_get_option('mep_hide_event_hover_btn', 'general_setting_sec', 'no');
|
||||||
$mep_hide_event_hover_btn_text = mep_get_option('mep_hide_event_hover_btn_text', 'general_setting_sec', 'Book Now');
|
$mep_hide_event_hover_btn_text = mep_get_option('mep_hide_event_hover_btn_text', 'general_setting_sec', 'Book Now');
|
||||||
|
@ -9,10 +11,12 @@ $mep_hide_event_hover_btn_text = mep_get_option('mep_hide_event_hover_btn_text
|
||||||
<a href="<?php echo get_the_permalink($event_id); ?>"><?php mep_get_list_thumbnail($event_id); ?></a>
|
<a href="<?php echo get_the_permalink($event_id); ?>"><?php mep_get_list_thumbnail($event_id); ?></a>
|
||||||
<?php if ($recurring == 'no') { ?>
|
<?php if ($recurring == 'no') { ?>
|
||||||
<div class="mep-ev-start-date">
|
<div class="mep-ev-start-date">
|
||||||
<div class="mep-day"><?php echo apply_filters('mep_event_list_only_day_number',get_mep_datetime($event_meta['event_start_datetime'][0], 'day'),$event_id); ?></div>
|
<div class="mep-day"><?php echo apply_filters('mep_event_list_only_day_number',$day,$event_id); ?></div>
|
||||||
<div class="mep-month"><?php echo apply_filters('mep_event_list_only_month_name',get_mep_datetime($event_meta['event_start_datetime'][0], 'month'),$event_id); ?></div>
|
<div class="mep-month"><?php echo apply_filters('mep_event_list_only_month_name',$month,$event_id); ?></div>
|
||||||
</div>
|
</div>
|
||||||
<?php }
|
<?php }else{
|
||||||
|
do_action('mep_event_list_only_date_show',$event_id);
|
||||||
|
}
|
||||||
|
|
||||||
if (is_array($event_multidate) && sizeof($event_multidate) > 0 && $recurring == 'no') { ?>
|
if (is_array($event_multidate) && sizeof($event_multidate) > 0 && $recurring == 'no') { ?>
|
||||||
<div class='mep-multidate-ribbon mep-tem3-title-sec'>
|
<div class='mep-multidate-ribbon mep-tem3-title-sec'>
|
||||||
|
|
|
@ -12,6 +12,10 @@
|
||||||
$qty_type = $field['option_qty_type'];
|
$qty_type = $field['option_qty_type'];
|
||||||
$total_sold = (int) mep_extra_service_sold($post_id, $field['option_name'], $event_date);
|
$total_sold = (int) mep_extra_service_sold($post_id, $field['option_name'], $event_date);
|
||||||
$ext_left = ($total_extra_service - $total_sold);
|
$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);
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="Left"><?php echo $field['option_name']; ?>
|
<td align="Left"><?php echo $field['option_name']; ?>
|
||||||
|
@ -34,7 +38,7 @@
|
||||||
<div class="mage_input_group">
|
<div class="mage_input_group">
|
||||||
<span class="fa fa-minus qty_dec"></span>
|
<span class="fa fa-minus qty_dec"></span>
|
||||||
<input id="eventpx" <?php //if($ext_left<=0){ echo "disabled"; }
|
<input id="eventpx" <?php //if($ext_left<=0){ echo "disabled"; }
|
||||||
?> size="4" inputmode="numeric" type="text" class='extra-qty-box' name='event_extra_service_qty[]' data-price='<?php echo mep_get_price_including_tax($post_id,$field['option_price']); ?>' value='0' min="0" max="<?php echo $ext_left; ?>">
|
?> size="4" inputmode="numeric" type="text" class='extra-qty-box' name='event_extra_service_qty[]' data-price='<?php echo $data_price; ?>' value='0' min="0" max="<?php echo $ext_left; ?>">
|
||||||
<span class="fa fa-plus qty_inc"></span>
|
<span class="fa fa-plus qty_inc"></span>
|
||||||
</div>
|
</div>
|
||||||
<?php }
|
<?php }
|
||||||
|
@ -44,7 +48,7 @@
|
||||||
</td>
|
</td>
|
||||||
<td class="mage_text_center"><?php echo wc_price(mep_get_price_including_tax($post_id, $field['option_price']));
|
<td class="mage_text_center"><?php echo wc_price(mep_get_price_including_tax($post_id, $field['option_price']));
|
||||||
if ($ext_left > 0) { ?>
|
if ($ext_left > 0) { ?>
|
||||||
<p style="display: none;" class="price_jq"><?php echo mep_get_price_including_tax($post_id,$field['option_price']); ?></p>
|
<p style="display: none;" class="price_jq"><?php echo $data_price; ?></p>
|
||||||
<input type="hidden" name='event_extra_service_name[]' value='<?php echo $field['option_name']; ?>'>
|
<input type="hidden" name='event_extra_service_name[]' value='<?php echo $field['option_name']; ?>'>
|
||||||
<input type="hidden" name='event_extra_service_price[]' value='<?php echo $field['option_price']; ?>'>
|
<input type="hidden" name='event_extra_service_price[]' value='<?php echo $field['option_price']; ?>'>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
|
@ -11,6 +11,9 @@
|
||||||
<?php echo mep_get_option('mep_ticket_qty_text', 'label_setting_sec') ? mep_get_option('mep_ticket_qty_text', 'label_setting_sec') : _e('Ticket Qty:', 'mage-eventpress'); ?>
|
<?php echo mep_get_option('mep_ticket_qty_text', 'label_setting_sec') ? mep_get_option('mep_ticket_qty_text', 'label_setting_sec') : _e('Ticket Qty:', 'mage-eventpress'); ?>
|
||||||
</span>
|
</span>
|
||||||
<?php
|
<?php
|
||||||
|
$actual_price=strip_tags(wc_price(mep_get_price_including_tax($post_id,$ticket_price)));
|
||||||
|
$data_price=str_replace(get_woocommerce_currency_symbol(), '', $actual_price);
|
||||||
|
$data_price=(int)str_replace(wc_get_price_thousand_separator(), '', $data_price);
|
||||||
if ($total_left > 0) {
|
if ($total_left > 0) {
|
||||||
if ($qty_t_type == 'dropdown') { ?>
|
if ($qty_t_type == 'dropdown') { ?>
|
||||||
<select name="option_qty[]" id="eventpxtp_<?php echo $count; ?>" <?php if ($total_left <= 0) { ?> style='display: none!important;' <?php } ?> class='extra-qty-box etp'>
|
<select name="option_qty[]" id="eventpxtp_<?php echo $count; ?>" <?php if ($total_left <= 0) { ?> style='display: none!important;' <?php } ?> class='extra-qty-box etp'>
|
||||||
|
@ -27,7 +30,7 @@
|
||||||
|
|
||||||
<div class="mage_input_group">
|
<div class="mage_input_group">
|
||||||
<span class="fa fa-minus qty_dec"></span>
|
<span class="fa fa-minus qty_dec"></span>
|
||||||
<input id="eventpxtp_<?php echo $count; ?>" type="text" class='extra-qty-box etp' name='option_qty[]' data-price='<?php echo mep_get_price_including_tax($post_id,$ticket_price); ?>' value='<?php echo $default_quantity; ?>' min="<?php echo $total_min_seat; ?>" max="<?php echo max($total_left, 0); ?>">
|
<input id="eventpxtp_<?php echo $count; ?>" type="text" class='extra-qty-box etp' name='option_qty[]' data-price='<?php echo $data_price; ?>' value='<?php echo $default_quantity; ?>' min="<?php echo $total_min_seat; ?>" max="<?php echo max($total_left, 0); ?>">
|
||||||
<span class="fa fa-plus qty_inc"></span>
|
<span class="fa fa-plus qty_inc"></span>
|
||||||
</div>
|
</div>
|
||||||
<?php }
|
<?php }
|
||||||
|
@ -44,7 +47,7 @@
|
||||||
<?php echo mep_get_option('mep_per_ticket_price_text', 'label_setting_sec') ? mep_get_option('mep_per_ticket_price_text', 'label_setting_sec') : _e('Per Ticket Price:', 'mage-eventpress'); ?>
|
<?php echo mep_get_option('mep_per_ticket_price_text', 'label_setting_sec') ? mep_get_option('mep_per_ticket_price_text', 'label_setting_sec') : _e('Per Ticket Price:', 'mage-eventpress'); ?>
|
||||||
</span> <strong><?php echo wc_price(mep_get_price_including_tax($post_id,$ticket_price)); ?></strong>
|
</span> <strong><?php echo wc_price(mep_get_price_including_tax($post_id,$ticket_price)); ?></strong>
|
||||||
<?php if ($total_seats > 0) { ?>
|
<?php if ($total_seats > 0) { ?>
|
||||||
<p style="display: none;" class="price_jq"><?php echo mep_get_price_including_tax($post_id,$ticket_price); ?></p>
|
<p style="display: none;" class="price_jq"><?php echo $data_price; ?></p>
|
||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -3,13 +3,13 @@
|
||||||
* Plugin Name: Woocommerce Events Manager
|
* Plugin Name: Woocommerce Events Manager
|
||||||
* Plugin URI: http://mage-people.com
|
* Plugin URI: http://mage-people.com
|
||||||
* Description: A Complete Event Solution for WordPress by MagePeople..
|
* Description: A Complete Event Solution for WordPress by MagePeople..
|
||||||
* Version: 3.3.9
|
* Version: 3.4.0
|
||||||
* Author: MagePeople Team
|
* Author: MagePeople Team
|
||||||
* Author URI: http://www.mage-people.com/
|
* Author URI: http://www.mage-people.com/
|
||||||
* Text Domain: mage-eventpress
|
* Text Domain: mage-eventpress
|
||||||
* Domain Path: /languages/
|
* Domain Path: /languages/
|
||||||
* WC requires at least: 3.0.9
|
* WC requires at least: 3.0.9
|
||||||
* WC tested up to: 4.7.1
|
* WC tested up to: 4.8.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (!defined('ABSPATH')) {
|
if (!defined('ABSPATH')) {
|
||||||
|
|
Loading…
Reference in New Issue