version 2.4.0 released
This commit is contained in:
parent
8aacf81073
commit
b65fdcaa3a
|
@ -1435,27 +1435,6 @@ h4.mep-cart-table-title {
|
|||
margin: -26px 0 0;
|
||||
padding: 0 0 0 25px;
|
||||
}
|
||||
|
||||
|
||||
.mep-ev-waitlist-active{
|
||||
padding: 10px;
|
||||
position: absolute;
|
||||
right: 0px;
|
||||
top: 0px;
|
||||
border-radius: 10px 0px 0px 10px;
|
||||
}
|
||||
.mep-ev-waitlist-active h2{
|
||||
font-size: 18px;
|
||||
color: #fff !important;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* Responsive CSS
|
||||
=====================================================================*/
|
||||
@media only screen and (min-width: 768px) and (max-width: 990px) {
|
||||
|
|
|
@ -764,6 +764,7 @@ function mep_event_ticket_type() {
|
|||
function mep_event_date_meta_box_cb($post){
|
||||
$values = get_post_custom( $post->ID );
|
||||
$more_date = get_post_meta($post->ID, 'mep_event_more_date', true);
|
||||
// print_r($values);
|
||||
?>
|
||||
|
||||
<div class='sec'>
|
||||
|
@ -775,16 +776,13 @@ $more_date = get_post_meta($post->ID, 'mep_event_more_date', true);
|
|||
<div class="sec">
|
||||
<table width="100%" class="mama">
|
||||
<tr >
|
||||
<td><input placeholder="Day 2" type="text" class='event_more_date' name="event_more_date[]" value="<?php if(array_key_exists('event_more_date', $values)){
|
||||
echo $more_date[0]['event_more_date']; } ?>"/></td>
|
||||
<td><input placeholder="Day 2" type="text" class='event_more_date' name="event_more_date[]" value="<?php if(array_key_exists('mep_event_more_date', $values)){ echo $more_date[0]['event_more_date']; } ?>" /></td>
|
||||
</tr>
|
||||
<tr >
|
||||
<td><input placeholder="Day 3" type="text" class='event_more_date' name="event_more_date[]" value="<?php if(array_key_exists('event_more_date', $values)){
|
||||
echo $more_date[1]['event_more_date']; } ?>" /></td>
|
||||
<td><input placeholder="Day 3" type="text" class='event_more_date' name="event_more_date[]" value="<?php if(array_key_exists('mep_event_more_date', $values)){ echo $more_date[1]['event_more_date']; } ?>" /></td>
|
||||
</tr>
|
||||
<tr >
|
||||
<td><input placeholder="Day 4" type="text" class='event_more_date' name="event_more_date[]" value="<?php if(array_key_exists('event_more_date', $values)){
|
||||
echo $more_date[2]['event_more_date']; } ?>" /></td>
|
||||
<td><input placeholder="Day 4" type="text" class='event_more_date' name="event_more_date[]" value="<?php if(array_key_exists('mep_event_more_date', $values)){ echo $more_date[2]['event_more_date']; } ?>" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
@ -1094,8 +1092,8 @@ elseif ( empty($mdate) && $oldm )
|
|||
|
||||
|
||||
|
||||
$update_reg_name = update_post_meta( $pid, 'mep_full_name', $mep_full_name);
|
||||
$update_reg_email = update_post_meta( $pid, 'mep_reg_email', $mep_reg_email);
|
||||
$update_reg_name = update_post_meta( $pid, 'mep_full_name', $mep_full_name);
|
||||
$update_reg_email = update_post_meta( $pid, 'mep_reg_email', $mep_reg_email);
|
||||
$update_reg_phone = update_post_meta( $pid, 'mep_reg_phone', $mep_reg_phone);
|
||||
$update_reg_address = update_post_meta( $pid, 'mep_reg_address', $mep_reg_address);
|
||||
$update_reg_desg = update_post_meta( $pid, 'mep_reg_designation', $mep_reg_designation);
|
||||
|
@ -1148,7 +1146,7 @@ $sts_msg = update_post_meta( $pid, '_stock_msg', 'new');
|
|||
|
||||
$update_location = update_post_meta( $pid, 'mep_location_venue', $mep_location_venue);
|
||||
$update_mep_street = update_post_meta( $pid, 'mep_street', $mep_street);
|
||||
|
||||
$update_seat_stock_status = update_post_meta( $pid, '_sold_individually', 'no');
|
||||
$update_city = update_post_meta( $pid, 'mep_city', $mep_city);
|
||||
$update_mep_state = update_post_meta( $pid, 'mep_state', $mep_state);
|
||||
$update_postcode = update_post_meta( $pid, 'mep_postcode', $mep_postcode);
|
||||
|
@ -1162,6 +1160,7 @@ $sts_msg = update_post_meta( $pid, '_stock_msg', 'new');
|
|||
$update_virtual = update_post_meta( $pid, '_virtual', 'yes');
|
||||
$update_end = update_post_meta( $pid, 'mep_event_end_date', $mep_event_end_date);
|
||||
$mep_event_cc_email_text = update_post_meta( $pid, 'mep_event_cc_email_text', $mep_event_cc_email_text);
|
||||
$mep_event_sku = update_post_meta( $pid, '_sku', $pid);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -235,7 +235,6 @@ echo "<ul class='event-custom-price'>";
|
|||
if($field['option_qty']>0){
|
||||
?>
|
||||
<li><?php echo esc_attr( $field['option_name'] ); ?> x <?php echo esc_attr( $field['option_qty'] ); ?>: <?php echo get_woocommerce_currency_symbol().($field['option_qty'] *$field['option_price'] ); ?> </li>
|
||||
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
@ -254,7 +253,7 @@ add_filter( 'woocommerce_get_item_data', 'mep_display_custom_fields_text_cart',
|
|||
|
||||
|
||||
function mep_add_custom_fields_text_to_order_items( $item, $cart_item_key, $values, $order ) {
|
||||
$eid = $values['event_id'];
|
||||
$eid = $values['event_id'];
|
||||
if (get_post_type($eid) == 'mep_events') {
|
||||
$mep_events_extra_prices = $values['event_extra_option'];
|
||||
$event_user_info = $values['event_user_info'];
|
||||
|
@ -300,11 +299,16 @@ $tck_name = $product_id.str_replace(' ', '', $event_ticket_type);
|
|||
$tesqt = get_post_meta($product_id,"mep_xtra_$tck_name",true);
|
||||
$ntesqt = ($tesqt+$event_ticket_qty);
|
||||
update_post_meta( $product_id, "mep_xtra_$tck_name",$ntesqt);
|
||||
$item->add_meta_data('event_ticket_type','ticket_typs');
|
||||
}else{
|
||||
$item->add_meta_data('event_ticket_type','normal');
|
||||
}
|
||||
|
||||
|
||||
$item->add_meta_data('_event_user_info',$event_user_info);
|
||||
$item->add_meta_data('_event_service_info',$mep_events_extra_prices);
|
||||
$item->add_meta_data('event_id',$eid);
|
||||
$item->add_meta_data('no_of_ticket',count($event_user_info));
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -210,17 +210,10 @@ $author_terms = get_the_terms(get_the_id(), 'mep_org');
|
|||
$time = strtotime($event_meta['mep_event_start_date'][0]);
|
||||
$newformat = date('Y-m-d H:i:s',$time);
|
||||
|
||||
|
||||
//if(time() < strtotime($newformat)){
|
||||
$tt = get_the_terms( get_the_id(), 'mep_cat');
|
||||
$torg = get_the_terms( get_the_id(), 'mep_org');
|
||||
// print_r($tt);
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
$available_seat = mep_get_total_available_seat(get_the_id(), $event_meta);
|
||||
?>
|
||||
<div class='mep_event_<?php echo $style; ?>_item mix <?php echo $tt[0]->slug; ?> <?php echo $torg[0]->slug; ?>'>
|
||||
<div class="mep_list_thumb">
|
||||
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('full'); ?></a>
|
||||
|
@ -228,14 +221,11 @@ $author_terms = get_the_terms(get_the_id(), 'mep_org');
|
|||
<div class="mep-day"><?php echo date('d', strtotime($event_meta['mep_event_start_date'][0])); ?></div>
|
||||
<div class="mep-month"><?php echo date('M', strtotime($event_meta['mep_event_start_date'][0])); ?></div>
|
||||
</div>
|
||||
|
||||
<?php do_action('mep_after_waitlist_join_lebel'); ?>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="mep_list_event_details"><a href="<?php the_permalink(); ?>">
|
||||
<div class="mep-list-header">
|
||||
<h2 class='mep_list_title'><?php the_title(); ?></h2>
|
||||
<?php if($available_seat==0){ do_action('mep_show_waitlist_label'); } ?>
|
||||
<h3 class='mep_list_date'> <?php if($show_price=='yes'){ echo $show_price_label." ".mep_event_list_price(get_the_id()); }?><!-- <i class="fa fa-calendar"></i> <?php echo date('h:i A', strtotime($event_meta['mep_event_start_date'][0])); ?> - <?php echo $event_meta['mep_event_end_date'][0]; ?> --></h3>
|
||||
</div>
|
||||
|
||||
|
@ -309,6 +299,11 @@ return $content;
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
add_shortcode( 'expire-event-list', 'mep_expire_event_list' );
|
||||
function mep_expire_event_list($atts, $content=null){
|
||||
$defaults = array(
|
||||
|
@ -543,6 +538,4 @@ if($pagination=='yes'){
|
|||
<?php
|
||||
$content = ob_get_clean();
|
||||
return $content;
|
||||
}
|
||||
|
||||
|
||||
}
|
10
readme.txt
10
readme.txt
|
@ -4,7 +4,7 @@ Tags: event, woocomerce events manager, events manager, Wordpress Events plugin,
|
|||
Requires at least: 4.5
|
||||
Stable tag: trunk
|
||||
Version: 2.3.4
|
||||
Tested up to: 4.9
|
||||
Tested up to: 5.1
|
||||
WC requires at least: 3.0
|
||||
WC tested up to: 3.5.0
|
||||
Requires PHP: 5.6
|
||||
|
@ -280,4 +280,10 @@ You can display the event list on any page by using the ShortCode. Just use this
|
|||
*= 2.3.2 =
|
||||
*Update Release:
|
||||
==> France Language Pack Ready.
|
||||
05 Feb 2019*
|
||||
05 Feb 2019*
|
||||
|
||||
|
||||
*= 2.4.0 =
|
||||
*Update Release:
|
||||
==> Bug Fixed.
|
||||
06 Mar 2019*
|
|
@ -6,7 +6,10 @@ function mep_ev_datetime(){
|
|||
global $event_meta;
|
||||
|
||||
if(array_key_exists('mep_event_more_date', $event_meta)){
|
||||
$more_date = unserialize($event_meta['mep_event_more_date'][0]);}else{ $more_date = '';}
|
||||
$more_date = unserialize($event_meta['mep_event_more_date'][0]);
|
||||
}else{
|
||||
$more_date = '';
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
|
|
@ -15,7 +15,7 @@ $total_book = ($total_book + $simple_rsv);
|
|||
|
||||
$mep_event_ticket_type = get_post_meta($post->ID, 'mep_event_ticket_type', true);
|
||||
|
||||
|
||||
|
||||
if(array_key_exists('mep_available_seat', $event_meta)){
|
||||
$mep_available_seat = $event_meta['mep_available_seat'][0];
|
||||
}else{
|
||||
|
@ -23,25 +23,16 @@ if(array_key_exists('mep_available_seat', $event_meta)){
|
|||
}
|
||||
|
||||
if($mep_event_ticket_type){
|
||||
|
||||
$stc = 0;
|
||||
$leftt = 0;
|
||||
$res = 0;
|
||||
|
||||
|
||||
$stc = 0;
|
||||
$leftt = 0;
|
||||
$res = 0;
|
||||
foreach ( $mep_event_ticket_type as $field ) {
|
||||
$qm = $field['option_name_t'];
|
||||
$tesqn = $post->ID.str_replace(' ', '', $qm);
|
||||
|
||||
$tesq = get_post_meta($post->ID,"mep_xtra_$tesqn",true);
|
||||
|
||||
$stc = $stc+$field['option_qty_t'];
|
||||
|
||||
$res = $res + (int)$field['option_rsv_t'];
|
||||
|
||||
$res = (int)$res;
|
||||
|
||||
|
||||
$llft = ($field['option_qty_t'] - (int)$tesq);
|
||||
$leftt = ($leftt+$llft);
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue