v 3.6.7 released
This commit is contained in:
parent
33dcd40a32
commit
7a943b8b89
@ -668,7 +668,7 @@ iframe#gmap_canvas {
|
||||
}
|
||||
|
||||
.mp_tab_details {
|
||||
width: calc(100% - 220px);
|
||||
width: calc(100% - 250px);
|
||||
background-color: #FFF;
|
||||
padding: 15px;
|
||||
}
|
||||
@ -676,7 +676,7 @@ iframe#gmap_canvas {
|
||||
.mp_tab_item {
|
||||
display: none;
|
||||
overflow-y: hidden;
|
||||
overflow-x: scroll;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.mp_form_area {
|
||||
|
@ -2304,7 +2304,7 @@ if (!function_exists('mep_get_term_as_class')) {
|
||||
|
||||
if (!function_exists('mep_ticket_type_sold')) {
|
||||
function mep_ticket_type_sold($event_id, $type = '', $date = '') {
|
||||
$type = !empty($type) ? html_entity_decode($type) : '';
|
||||
$type = !empty($type) ? $type : '';
|
||||
$type_filter = !empty($type) ? array(
|
||||
'key' => 'ea_ticket_type',
|
||||
'value' => $type,
|
||||
|
@ -92,6 +92,7 @@ function mep_user_custom_styles()
|
||||
}
|
||||
|
||||
/*Cart Button Style*/
|
||||
button.mpwemasp_get_sp,
|
||||
.mep-default-feature-cart-sec button.single_add_to_cart_button.button.alt.btn-mep-event-cart, .mep-event-theme-1 .btn-mep-event-cart, .mep-template-2-hamza .btn-mep-event-cart, .mep-tem3-mid-sec .btn-mep-event-cart, .button.button-default.woocommerce.button.alt.button.alt.btn-mep-event-cart {
|
||||
background: <?php echo esc_attr($cart_btn_bg_color); ?>;
|
||||
color: <?php echo esc_attr($cart_btn_txt_color); ?> !important;
|
||||
|
@ -10,9 +10,15 @@ if (!function_exists('mep_get_event_reg_btn')) {
|
||||
{
|
||||
global $post, $event_meta;
|
||||
$event_id = mep_get_default_lang_event_id($event_id);
|
||||
$new_registration_system_sp = get_post_meta($event_id, 'mpwemasp_seat_plan_system', true) ? get_post_meta($event_id, 'mpwemasp_seat_plan_system', true) : 'off';
|
||||
$seat_plan = get_post_meta($event_id, 'mepsp_event_seat_plan_info', true) ? get_post_meta($event_id, 'mepsp_event_seat_plan_info', true) : [];
|
||||
$seat_plan_visible = get_post_meta($event_id, 'mp_event_seat_plan_visible', true) ? get_post_meta($event_id, 'mp_event_seat_plan_visible', true) : '1';
|
||||
// if(class_exists('MP_ESP_Frontend') && sizeof($seat_plan) > 0 && $seat_plan_visible ==2 &&$new_registration_system_sp=='on'){
|
||||
// do_action('mpwem_new_registration_system_sp',$event_id);
|
||||
// }else{
|
||||
|
||||
$saved_user_role = get_post_meta($event_id, 'mep_member_only_user_role', true) ? get_post_meta($event_id, 'mep_member_only_user_role', true) : [];
|
||||
$event_member_type = get_post_meta($event_id, 'mep_member_only_event', true) ? get_post_meta($event_id, 'mep_member_only_event', true) : 'for_all';
|
||||
$event_member_type = get_post_meta($event_id, 'mep_member_only_event', true) ? get_post_meta($event_id, 'mep_member_only_event', true) : 'for_all';
|
||||
|
||||
|
||||
$cart_btn_label = array_key_exists('cart-btn-label',$params) ? esc_html($params['cart-btn-label']) : mep_get_label($event_id, 'mep_cart_btn_text', esc_html__('Register This Event','mage-eventpress'));
|
||||
@ -124,7 +130,8 @@ if (!function_exists('mep_get_event_reg_btn')) {
|
||||
</h4>
|
||||
<!--The event add to cart main form start here-->
|
||||
<form action="" method='post' id="mage_event_submit">
|
||||
|
||||
<input type="hidden" name='' id='mep_event_id' value='<?php echo $event_id; ?>'>
|
||||
<div class="mpwemasp_ticket_area">
|
||||
<?php
|
||||
/**
|
||||
* Here is a magic hook which fire just before of the Add to Cart Button, And the Ticket type & Extra service list are hooked up into this, You can find them into inc/template-parts/event_ticket_type_extra_service.php
|
||||
@ -139,6 +146,7 @@ if (!function_exists('mep_get_event_reg_btn')) {
|
||||
<input type="hidden" name='currency_thousands_separator' value="<?php echo wc_get_price_thousand_separator(); ?>">
|
||||
<input type="hidden" name='currency_number_of_decimal' value="<?php echo wc_get_price_decimals(); ?>">
|
||||
<?php do_action('mep_add_term_condition',$post_id); ?>
|
||||
</div>
|
||||
<!--The Add to cart button table start Here-->
|
||||
<table class='table table-bordered mep_event_add_cart_table'>
|
||||
<tr>
|
||||
@ -158,13 +166,13 @@ if (!function_exists('mep_get_event_reg_btn')) {
|
||||
<?php do_action('mep_before_add_cart_btn',$post_id); ?>
|
||||
<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'); ?>">
|
||||
<?php if($not_in_the_cart){ ?>
|
||||
<button type="submit" name="add-to-cart" value="<?php echo esc_attr($cart_product_id); ?>" class="button-default woocommerce button alt button alt btn-mep-event-cart"><?php echo esc_html($cart_btn_label); ?></button>
|
||||
<?php }else{
|
||||
?>
|
||||
<?php if($not_in_the_cart && class_exists('MP_ESP_Frontend') && sizeof($seat_plan) > 0 && $seat_plan_visible ==2 &&$new_registration_system_sp=='on'){ ?>
|
||||
<button type="submit" class="mpwemasp_get_sp"><?php esc_html_e("View Seat Plan","mage-eventpress"); ?></button>
|
||||
<?php }if($not_in_the_cart){ ?>
|
||||
<button type="submit" name="add-to-cart" value="<?php echo esc_attr($cart_product_id); ?>" class="button-default woocommerce button alt button alt btn-mep-event-cart"><?php echo esc_html($cart_btn_label); ?></button>
|
||||
<?php }else{ ?>
|
||||
<a href="<?php echo wc_get_cart_url(); ?>" class="button-default woocommerce button alt button alt btn-mep-event-cart"><?php esc_html_e('Already Added into Cart! View Cart', 'mage-eventpress'); ?> </a>
|
||||
<?php
|
||||
} ?>
|
||||
<?php } ?>
|
||||
<?php do_action('mep_after_add_cart_btn',$post_id); ?>
|
||||
</td>
|
||||
</tr>
|
||||
@ -183,8 +191,9 @@ if (!function_exists('mep_get_event_reg_btn')) {
|
||||
<?php
|
||||
}
|
||||
}
|
||||
} // End Of checking Registration status
|
||||
}
|
||||
} // End Of checking Registration status
|
||||
}
|
||||
//}
|
||||
}
|
||||
|
||||
|
||||
|
@ -11,7 +11,7 @@ if (!function_exists('mep_display_event_loop_list')) {
|
||||
$show_price = mep_get_option('mep_event_price_show', 'event_list_setting_sec', 'yes');
|
||||
$price_count = mep_event_list_price($event_id, 'count');
|
||||
// event_price_label_single
|
||||
$show_price_label = $price_count == 1 ? mep_get_option('event_price_label_single', 'general_setting_sec', __('Price:','mage-eventpress')) : mep_get_option('event-price-label', 'general_setting_sec', __('Price Starts from:','mage-eventpress'));
|
||||
$show_price_label = $price_count == 1 ? mep_get_option('event_price_label_single', 'label_setting_sec', __('Price:','mage-eventpress')) : mep_get_option('event-price-label', 'label_setting_sec', __('Price Starts from:','mage-eventpress'));
|
||||
|
||||
$event_meta = get_post_custom($event_id);
|
||||
$author_terms = get_the_terms($event_id, 'mep_org') ? get_the_terms($event_id, 'mep_org') : [];
|
||||
|
@ -45,7 +45,8 @@ if (!function_exists('mep_ev_ticket_type')) {
|
||||
}
|
||||
|
||||
});
|
||||
$('#mage_event_submit').on('submit', function() {
|
||||
$('#mage_event_submit').on('submit', function(e) {
|
||||
//e.stopPropagation();
|
||||
if (mageErrorQty()) {
|
||||
return true;
|
||||
}
|
||||
|
@ -14,8 +14,9 @@ if (!function_exists('mep_event_ticket_type_loop_list_html')) {
|
||||
$seat_plan = get_post_meta($post_id, 'mepsp_event_seat_plan_info', true) ? get_post_meta($post_id, 'mepsp_event_seat_plan_info', true) : [];
|
||||
$seat_plan_visible = get_post_meta($post_id, 'mp_event_seat_plan_visible', true) ? get_post_meta($post_id, 'mp_event_seat_plan_visible', true) : '1';
|
||||
$event_expire_date = get_post_meta($post_id, 'event_expire_datetime', true) ? get_post_meta($post_id, 'event_expire_datetime', true) : '';
|
||||
$system_sp = get_post_meta($post_id, 'mpwemasp_seat_plan_system', true) ? get_post_meta($post_id, 'mpwemasp_seat_plan_system', true) : 'off';
|
||||
|
||||
if (class_exists('MP_ESP_Frontend') && sizeof($seat_plan) > 0 && $seat_plan_visible ==2) {
|
||||
if (class_exists('MP_ESP_Frontend') && sizeof($seat_plan) > 0 && $seat_plan_visible ==2 && $system_sp=='off') {
|
||||
|
||||
$event_start_date = get_post_meta($post_id, 'event_start_date', true) . ' ' . get_post_meta($post_id, 'event_start_time', true);
|
||||
$ticket_type_file_path = apply_filters('mep_ticket_type_file_path',mep_template_file_path('single/ticket_type_list.php'),$post_id);
|
||||
@ -24,7 +25,6 @@ if (!function_exists('mep_event_ticket_type_loop_list_html')) {
|
||||
}else{
|
||||
|
||||
foreach ($mep_event_ticket_type as $field) {
|
||||
|
||||
$current_time = apply_filters('mep_ticket_current_time',current_time('Y-m-d H:i'),$event_expire_date,$post_id);
|
||||
$ticket_type_name = array_key_exists('option_name_t',$field) ? mep_remove_apostopie($field['option_name_t']) : '';
|
||||
$ticket_type = array_key_exists('option_qty_t_type',$field) ? $field['option_qty_t_type'] : 'input';
|
||||
|
@ -847,3 +847,9 @@ Warning: Invaild Product ID in Checkout Page fixed
|
||||
* Update Release:
|
||||
Bug fixed
|
||||
09 Jun 2022*
|
||||
|
||||
= 3.6.7=
|
||||
* Update Release:
|
||||
Ticket Allocation issue fixed for special char.
|
||||
Bug fixed
|
||||
27 Jun 2022*
|
@ -13,7 +13,7 @@
|
||||
</span>
|
||||
<?php
|
||||
$tic_price = mep_get_price_including_tax($post_id,$ticket_price);
|
||||
$actual_price = mage_array_strip(wc_price(mep_get_price_including_tax($post_id,$ticket_price)));
|
||||
$actual_price = mage_array_strip(wc_price(mep_get_price_including_tax($post_id,$ticket_price)));
|
||||
$data_price = str_replace(get_woocommerce_currency_symbol(), '', $actual_price);
|
||||
$data_price = str_replace(wc_get_price_thousand_separator(), '', $data_price);
|
||||
$data_price = str_replace(wc_get_price_decimal_separator(), '.', $data_price);
|
||||
|
@ -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.6.6
|
||||
* Version: 3.6.7
|
||||
* Author: MagePeople Team
|
||||
* Author URI: http://www.mage-people.com/
|
||||
* Text Domain: mage-eventpress
|
||||
|
Loading…
x
Reference in New Issue
Block a user