version 2.7.2 released with news admin look
This commit is contained in:
parent
2e93e9fa2e
commit
a57a6d7ac3
|
@ -208,4 +208,9 @@ div#mep-event-price {
|
||||||
div#mep-event-price h2 {
|
div#mep-event-price h2 {
|
||||||
background: red;
|
background: red;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
div#mage-primary-button{
|
||||||
|
background:green !important;
|
||||||
|
color:white !important;
|
||||||
}
|
}
|
|
@ -3,28 +3,28 @@ if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly.
|
||||||
add_action( 'add_meta_boxes', 'mep_event_meta_box_add' );
|
add_action( 'add_meta_boxes', 'mep_event_meta_box_add' );
|
||||||
function mep_event_meta_box_add(){
|
function mep_event_meta_box_add(){
|
||||||
|
|
||||||
add_meta_box( 'mep-event-meta', __('Event Venue','mage-eventpress'), 'mep_event_venue_meta_box_cb', 'mep_events', 'normal', 'high' );
|
add_meta_box( 'mep-event-meta', __('<span class="dashicons dashicons-location" style="color:green; padding-right:10px;"></span>Event Venue','mage-eventpress'), 'mep_event_venue_meta_box_cb', 'mep_events', 'normal', 'high' );
|
||||||
|
|
||||||
add_meta_box( 'mep-event-price', __('Event Price (Event Base price, It will not work if you add Event Ticket type Price)','mage-eventpress'), 'mep_event_price_meta_box_cb', 'mep_events', 'normal', 'high' );
|
add_meta_box( 'mep-event-price', __('Event Price (Event Base price, It will not work if you add Event Ticket type Price)','mage-eventpress'), 'mep_event_price_meta_box_cb', 'mep_events', 'normal', 'high' );
|
||||||
|
|
||||||
add_meta_box( 'mep-event-extra-price', __('Event Extra Service (Extra Service as Product that you can sell and it is not included on event package)','mage-eventpress'), 'mep_event_extra_price_option', 'mep_events', 'normal', 'high' );
|
add_meta_box( 'mep-event-extra-price', __('<span class="dashicons dashicons-awards" style="color:green; padding-right:10px;"></span>Event Extra Service (Extra Service as Product that you can sell and it is not included on event package)','mage-eventpress'), 'mep_event_extra_price_option', 'mep_events', 'normal', 'high' );
|
||||||
|
|
||||||
add_meta_box( 'mep-event-ticket-type', __('Event Ticket Type','mage-eventpress'), 'mep_event_ticket_type', 'mep_events', 'normal', 'high' );
|
add_meta_box( 'mep-event-ticket-type', __('<span class="dashicons dashicons-buddicons-tracking" style="color:green; padding-right:10px;"></span>Event Ticket Type and Pricing','mage-eventpress'), 'mep_event_ticket_type', 'mep_events', 'normal', 'high' );
|
||||||
|
|
||||||
add_meta_box( 'mep-event-date', __('Event Date & Time','mage-eventpress'), 'mep_event_date_meta_box_cb', 'mep_events', 'normal', 'high' );
|
add_meta_box( 'mep-event-date', __('<span class="dashicons dashicons-calendar-alt" style="color:green; padding-right:10px;"></span>Event Date & Time','mage-eventpress'), 'mep_event_date_meta_box_cb', 'mep_events', 'normal', 'high' );
|
||||||
|
|
||||||
add_meta_box( 'mep-event-emails', __('Event Email text','mage-eventpress'), 'mep_event_email_meta_box_cb', 'mep_events', 'normal', 'high' );
|
add_meta_box( 'mep-event-emails', __('<span class="dashicons dashicons-email-alt" style="color:green; padding-right:10px;"></span>Event Email text','mage-eventpress'), 'mep_event_email_meta_box_cb', 'mep_events', 'normal', 'high' );
|
||||||
|
|
||||||
add_meta_box( 'mep-event-template', __('Template','mage-eventpress'), 'mep_event_template_meta_box_cb', 'mep_events', 'side', 'low' );
|
add_meta_box( 'mep-event-template', __('Template','mage-eventpress'), 'mep_event_template_meta_box_cb', 'mep_events', 'side', 'low' );
|
||||||
|
|
||||||
add_meta_box( 'mep-event-faq-box', __('Event F.A.Q','mage-eventpress'), 'mep_event_faq_meta_box_cb', 'mep_events', 'normal', 'high' );
|
add_meta_box( 'mep-event-faq-box', __('<span class="dashicons dashicons-info" style="color:green; padding-right:10px;"></span>Event F.A.Q','mage-eventpress'), 'mep_event_faq_meta_box_cb', 'mep_events', 'normal', 'high' );
|
||||||
|
|
||||||
add_meta_box( 'mep-event-reg-on-off', __('Registration Status','mage-eventpress'), 'mep_event_change_reg_status_cb', 'mep_events', 'side', 'low' );
|
add_meta_box( 'mep-event-reg-on-off', __('Registration Status','mage-eventpress'), 'mep_event_change_reg_status_cb', 'mep_events', 'side', 'low' );
|
||||||
|
|
||||||
add_meta_box( 'mep-event-available-set-on-off', __('Show Available Seat Count?','mage-eventpress'), 'mep_event_available_seat_cb', 'mep_events', 'side', 'low' );
|
add_meta_box( 'mep-event-available-set-on-off', __('Show Available Seat Count?','mage-eventpress'), 'mep_event_available_seat_cb', 'mep_events', 'side', 'low' );
|
||||||
|
|
||||||
add_meta_box( 'mep-event-day-details', __('Event Daywise Details','mage-eventpress'), 'mep_event_day_details_cb', 'mep_events', 'normal', 'high' );
|
add_meta_box( 'mep-event-day-details', __('<span class="dashicons dashicons-analytics" style="color:green; padding-right:10px;"></span>Event Daywise Details','mage-eventpress'), 'mep_event_day_details_cb', 'mep_events', 'normal', 'high' );
|
||||||
add_meta_box( 'mep-event-day-details', __('Event Daywise Details','mage-eventpress'), 'mep_event_day_details_cb', 'mep_events', 'normal', 'high' );
|
// add_meta_box( 'mep-event-day-details', __('Event Daywise Details','mage-eventpress'), 'mep_event_day_details_cb', 'mep_events', 'normal', 'high' );
|
||||||
|
|
||||||
if(get_option( 'woocommerce_calc_taxes' )=='yes'){
|
if(get_option( 'woocommerce_calc_taxes' )=='yes'){
|
||||||
add_meta_box( 'mep-event-tax-sec', __('Event Tax','mage-eventpress'), 'mep_event_tax_cb', 'mep_events', 'side', 'low' );
|
add_meta_box( 'mep-event-tax-sec', __('Event Tax','mage-eventpress'), 'mep_event_tax_cb', 'mep_events', 'side', 'low' );
|
||||||
|
@ -237,7 +237,7 @@ $map_type = mep_get_option( 'mep_google_map_type', 'general_setting_sec', 'ifram
|
||||||
|
|
||||||
<div class='sec'>
|
<div class='sec'>
|
||||||
<label for="mep_ev_2"> <?php _e('Location/Venue:','mage-eventpress'); ?> </label>
|
<label for="mep_ev_2"> <?php _e('Location/Venue:','mage-eventpress'); ?> </label>
|
||||||
<span><input id='mep_ev_2' type="text" name='mep_location_venue' value='<?php echo mep_get_event_locaion_item($post->ID,'mep_location_venue'); //if(array_key_exists('mep_location_venue', $values)){ echo $values['mep_location_venue'][0]; } ?>'> </span>
|
<span><input id='mep_ev_2' type="text" name='mep_location_venue' placeholder="Ex: Newyork Meeting Center" value='<?php echo mep_get_event_locaion_item($post->ID,'mep_location_venue'); ?>'> </span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
@ -245,35 +245,35 @@ $map_type = mep_get_option( 'mep_google_map_type', 'general_setting_sec', 'ifram
|
||||||
|
|
||||||
<div class='sec'>
|
<div class='sec'>
|
||||||
<label for="mep_ev_3"> <?php _e('Street:','mage-eventpress'); ?> </label>
|
<label for="mep_ev_3"> <?php _e('Street:','mage-eventpress'); ?> </label>
|
||||||
<span><input id='mep_ev_3' type="text" name='mep_street' value='<?php echo mep_get_event_locaion_item($post->ID,'mep_street'); //if(array_key_exists('mep_street', $values)){ echo $values['mep_street'][0]; } ?>'> </span>
|
<span><input id='mep_ev_3' type="text" name='mep_street' placeholder="Ex: 10 E 33rd St" value='<?php echo mep_get_event_locaion_item($post->ID,'mep_street'); ?>'> </span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class='sec'>
|
<div class='sec'>
|
||||||
<label for="mep_ev_4"> <?php _e('City:','mage-eventpress'); ?> </label>
|
<label for="mep_ev_4"> <?php _e('City:','mage-eventpress'); ?> </label>
|
||||||
<span><input id='mep_ev_4' type="text" name='mep_city' value='<?php echo mep_get_event_locaion_item($post->ID,'mep_city'); //if(array_key_exists('mep_city', $values)){ echo $values['mep_city'][0]; } ?>'> </span>
|
<span><input id='mep_ev_4' type="text" name='mep_city' placeholder="Ex: New York" value='<?php echo mep_get_event_locaion_item($post->ID,'mep_city'); ?>'> </span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class='sec'>
|
<div class='sec'>
|
||||||
<label for="mep_ev_5"> <?php _e('State:','mage-eventpress'); ?> </label>
|
<label for="mep_ev_5"> <?php _e('State:','mage-eventpress'); ?> </label>
|
||||||
<span><input id='mep_ev_5' type="text" name='mep_state' value='<?php echo mep_get_event_locaion_item($post->ID,'mep_state'); //if(array_key_exists('mep_state', $values)){ echo $values['mep_state'][0]; } ?>'> </span>
|
<span><input id='mep_ev_5' type="text" name='mep_state' placeholder="Ex: NY" value='<?php echo mep_get_event_locaion_item($post->ID,'mep_state'); ?>'> </span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class='sec'>
|
<div class='sec'>
|
||||||
<label for="mep_ev_6"> <?php _e('Postcode:','mage-eventpress'); ?> </label>
|
<label for="mep_ev_6"> <?php _e('Postcode:','mage-eventpress'); ?> </label>
|
||||||
<span><input id='mep_ev_6' type="text" name='mep_postcode' value='<?php echo mep_get_event_locaion_item($post->ID,'mep_postcode'); //if(array_key_exists('mep_postcode', $values)){ echo $values['mep_postcode'][0]; } ?>'> </span>
|
<span><input id='mep_ev_6' type="text" name='mep_postcode' placeholder="Ex: 10016" value='<?php echo mep_get_event_locaion_item($post->ID,'mep_postcode'); ?>'> </span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class='sec'>
|
<div class='sec'>
|
||||||
<label for="mep_ev_7"> <?php _e('Country:','mage-eventpress'); ?> </label>
|
<label for="mep_ev_7"> <?php _e('Country:','mage-eventpress'); ?> </label>
|
||||||
<span><input id='mep_ev_7' type="text" name='mep_country' value='<?php echo mep_get_event_locaion_item($post->ID,'mep_country'); //if(array_key_exists('mep_country', $values)){ echo $values['mep_country'][0]; } ?>'> </span>
|
<span><input id='mep_ev_7' type="text" name='mep_country' placeholder="Ex: USA" value='<?php echo mep_get_event_locaion_item($post->ID,'mep_country'); ?>'> </span>
|
||||||
</div>
|
</div>
|
||||||
<div class='sec'>
|
<div class='sec'>
|
||||||
<label for="mep_ev_989"> <?php _e('Show Google Map:','mage-eventpress'); ?> </label>
|
<label for="mep_ev_989"> <?php _e('Show Google Map:','mage-eventpress'); ?> </label>
|
||||||
|
@ -574,7 +574,9 @@ function mep_event_faq_meta_box_cb() {
|
||||||
<div id='mep_event_faq_r' class="">
|
<div id='mep_event_faq_r' class="">
|
||||||
<input placeholder="FAQ Title" type="text" class="mep-faq-input" name="mep_faq_title[]">
|
<input placeholder="FAQ Title" type="text" class="mep-faq-input" name="mep_faq_title[]">
|
||||||
<textarea placeholder="<?php _e('FAQ Contents','mage-eventpress'); ?>" name="mep_faq_content[]" id="" cols="50" rows="4" class="mep-faq-input"></textarea>
|
<textarea placeholder="<?php _e('FAQ Contents','mage-eventpress'); ?>" name="mep_faq_content[]" id="" cols="50" rows="4" class="mep-faq-input"></textarea>
|
||||||
<a class="button remove-faq-row" href="#"><?php _e('Remove','mage-eventpress'); ?></a>
|
|
||||||
|
<button class="button remove-faq-row"><span class="dashicons dashicons-trash" style="margin-top: 3px;color: red;"></span><?php _e('Remove','mage-eventpress'); ?></button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
|
@ -582,7 +584,11 @@ function mep_event_faq_meta_box_cb() {
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<p><a id="add-faq-row" class="button" href="#"><?php _e('Add New F.A.Q','mage-eventpress'); ?></a></p>
|
<p>
|
||||||
|
<button id="add-faq-row" class="button " style="background:green; color:white;"><span class="dashicons dashicons-plus-alt" style="margin-top: 3px;color: white;"></span><?php _e('Add New F.A.Q','mage-eventpress'); ?></button>
|
||||||
|
|
||||||
|
|
||||||
|
</p>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
@ -705,7 +711,10 @@ function mep_event_day_details_cb() {
|
||||||
<div id='mep_event_day_r' class="">
|
<div id='mep_event_day_r' class="">
|
||||||
<input placeholder="Day Title" type="text" class="mep-faq-input" name="mep_day_title[]">
|
<input placeholder="Day Title" type="text" class="mep-faq-input" name="mep_day_title[]">
|
||||||
<textarea placeholder="<?php _e('Day Details','mage-eventpress'); ?>" name="mep_day_content[]" id="" cols="50" rows="4" class="mep-faq-input"></textarea>
|
<textarea placeholder="<?php _e('Day Details','mage-eventpress'); ?>" name="mep_day_content[]" id="" cols="50" rows="4" class="mep-faq-input"></textarea>
|
||||||
<a class="button remove-day-row" href="#"><?php _e('Remove','mage-eventpress'); ?></a>
|
|
||||||
|
|
||||||
|
<button class="button remove-day-row"><span class="dashicons dashicons-trash" style="margin-top: 3px;color: red;"></span><?php _e('Remove','mage-eventpress'); ?></button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
|
@ -713,7 +722,11 @@ function mep_event_day_details_cb() {
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<p><a id="add-day-row" class="button" href="#"><?php _e('Add New Day','mage-eventpress'); ?></a></p>
|
<p>
|
||||||
|
|
||||||
|
<button id="add-day-row" class="button" style="background:green; color:white;"><span class="dashicons dashicons-plus-alt" style="margin-top: 3px;color: white;"></span><?php _e('Add New Day','mage-eventpress'); ?></button>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
@ -817,11 +830,12 @@ function mep_event_extra_price_option() {
|
||||||
$qty_type = esc_attr( $field['option_qty_type'] );
|
$qty_type = esc_attr( $field['option_qty_type'] );
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><input type="text" class="widefat" name="option_name[]" value="<?php if($field['option_name'] != '') echo esc_attr( $field['option_name'] ); ?>" /></td>
|
<td><input type="text" class="widefat" name="option_name[]" placeholder="Ex: Cap" value="<?php if($field['option_name'] != '') echo esc_attr( $field['option_name'] ); ?>" /></td>
|
||||||
|
|
||||||
<td><input type="number" step="0.01" class="widefat" name="option_price[]" value="<?php if ($field['option_price'] != '') echo esc_attr( $field['option_price'] ); else echo ''; ?>" /></td>
|
<td><input type="number" step="0.01" class="widefat" name="option_price[]"
|
||||||
|
placeholder="Ex: 10" value="<?php if ($field['option_price'] != '') echo esc_attr( $field['option_price'] ); else echo ''; ?>" /></td>
|
||||||
|
|
||||||
<td><input type="number" class="widefat" name="option_qty[]" value="<?php if ($field['option_qty'] != '') echo esc_attr( $field['option_qty'] ); else echo ''; ?>" /></td>
|
<td><input type="number" class="widefat" name="option_qty[]" placeholder="Ex: 100" value="<?php if ($field['option_qty'] != '') echo esc_attr( $field['option_qty'] ); else echo '' ; ?>" /></td>
|
||||||
|
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<select name="option_qty_type[]" id="mep_ev_9800kj8" class=''>
|
<select name="option_qty_type[]" id="mep_ev_9800kj8" class=''>
|
||||||
|
@ -829,7 +843,10 @@ function mep_event_extra_price_option() {
|
||||||
<option value="dropdown" <?php if($qty_type=='dropdown'){ echo "Selected"; } ?>><?php _e('Dropdown List','mage-eventpress'); ?></option>
|
<option value="dropdown" <?php if($qty_type=='dropdown'){ echo "Selected"; } ?>><?php _e('Dropdown List','mage-eventpress'); ?></option>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
<td><a class="button remove-row" href="#"><?php _e('Remove','mage-eventpress'); ?></a></td>
|
<td>
|
||||||
|
<button class="button remove-row"><span class="dashicons dashicons-trash" style="margin-top: 3px;color: red;"></span><?php _e('Remove','mage-eventpress'); ?></button>
|
||||||
|
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
@ -840,21 +857,33 @@ function mep_event_extra_price_option() {
|
||||||
|
|
||||||
<!-- empty hidden one for jQuery -->
|
<!-- empty hidden one for jQuery -->
|
||||||
<tr class="empty-row screen-reader-text">
|
<tr class="empty-row screen-reader-text">
|
||||||
<td><input type="text" class="widefat" name="option_name[]" /></td>
|
<td><input type="text" class="widefat" name="option_name[]" placeholder="Ex: Cap" /></td>
|
||||||
<td><input type="number" class="widefat" step="0.01" name="option_price[]" value="" /></td>
|
<td><input type="number" class="widefat" step="0.01" name="option_price[]" placeholder="Ex: 10" value="" /></td>
|
||||||
<td><input type="number" class="widefat" name="option_qty[]" value="" /></td>
|
<td><input type="number" class="widefat" name="option_qty[]" placeholder="Ex: 100" value="" /></td>
|
||||||
|
|
||||||
<td><select name="option_qty_type[]" id="mep_ev_9800kj8" class=''>
|
<td><select name="option_qty_type[]" id="mep_ev_9800kj8" class=''>
|
||||||
<option value=""><?php _e('Please Select Type','mage-eventpress'); ?></option>
|
<option value=""><?php _e('Please Select Type','mage-eventpress'); ?></option>
|
||||||
<option value="inputbox"><?php _e('Input Box','mage-eventpress'); ?></option>
|
<option value="inputbox"><?php _e('Input Box','mage-eventpress'); ?></option>
|
||||||
<option value="dropdown"><?php _e('Dropdown List','mage-eventpress'); ?></option>
|
<option value="dropdown"><?php _e('Dropdown List','mage-eventpress'); ?></option>
|
||||||
</select></td>
|
</select></td>
|
||||||
<td><a class="button remove-row" href="#"><?php _e('Remove','mage-eventpress'); ?></a></td>
|
<td>
|
||||||
|
|
||||||
|
|
||||||
|
<button class="button remove-row"><span class="dashicons dashicons-trash" style="margin-top: 3px;color: red;"></span><?php _e('Remove','mage-eventpress'); ?></button>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<p><a id="add-row" class="button" href="#"><?php _e('Add Extra Price','mage-eventpress'); ?></a></p>
|
<p>
|
||||||
|
|
||||||
|
<button id="add-row" class="button" style="background:green; color:white;"><span class="dashicons dashicons-plus-alt" style="margin-top: 3px;color: white;"></span><?php _e('Add Extra Price','mage-eventpress'); ?></button>
|
||||||
|
|
||||||
|
|
||||||
|
</p>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -910,22 +939,27 @@ function mep_event_ticket_type() {
|
||||||
|
|
||||||
foreach ( $mep_event_ticket_type as $field ) {
|
foreach ( $mep_event_ticket_type as $field ) {
|
||||||
$qty_t_type = esc_attr( $field['option_qty_t_type'] );
|
$qty_t_type = esc_attr( $field['option_qty_t_type'] );
|
||||||
|
$opt_qty = isset($field['option_qty_t']) ? $field['option_qty_t'] : 0;
|
||||||
|
$opt_rst_qty = isset($field['option_rsv_t']) ? $field['option_rsv_t'] : 0;
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><input type="text" class="widefat" name="option_name_t[]" value="<?php if($field['option_name_t'] != '') echo esc_attr( $field['option_name_t'] ); ?>" /></td>
|
<td><input type="text" class="widefat" name="option_name_t[]" placeholder="Ex: Adult" value="<?php if($field['option_name_t'] != '') echo esc_attr( $field['option_name_t'] ); ?>" /></td>
|
||||||
|
|
||||||
<td><input type="number" step="0.01" class="widefat" name="option_price_t[]" value="<?php if ($field['option_price_t'] != '') echo esc_attr( $field['option_price_t'] ); else echo ''; ?>" /></td>
|
<td><input type="number" step="0.01" class="widefat" name="option_price_t[]" placeholder="Ex: 10" value="<?php if ($field['option_price_t'] != '') echo esc_attr( $field['option_price_t'] ); else echo ''; ?>" /></td>
|
||||||
|
|
||||||
<td><input type="number" class="widefat" name="option_qty_t[]" value="<?php if ($field['option_qty_t'] != '') echo esc_attr( $field['option_qty_t'] ); else echo ''; ?>" /></td>
|
<td><input type="number" class="widefat" name="option_qty_t[]" placeholder="Ex: 500" value="<?php if(isset($field['option_qty_t'])){ echo $field['option_qty_t']; }else{ echo 0; } ?>" /></td>
|
||||||
|
|
||||||
<td><input type="number" class="widefat" name="option_rsv_t[]" value="<?php if ($field['option_rsv_t'] != '') echo esc_attr( $field['option_rsv_t'] ); else echo ''; ?>" /></td>
|
<td><input type="number" class="widefat" name="option_rsv_t[]" placeholder="Ex: 5" value="<?php if(isset($field['option_rsv_t'])){ echo $field['option_rsv_t']; }else{ echo 0; } ?>" /></td>
|
||||||
|
|
||||||
<td><select name="option_qty_t_type[]" id="mep_ev_9800kj8" class=''>
|
<td><select name="option_qty_t_type[]" id="mep_ev_9800kj8" class=''>
|
||||||
<option value="inputbox" <?php if($qty_t_type=='inputbox'){ echo "Selected"; } ?>><?php _e('Input Box','mage-eventpress'); ?></option>
|
<option value="inputbox" <?php if($qty_t_type=='inputbox'){ echo "Selected"; } ?>><?php _e('Input Box','mage-eventpress'); ?></option>
|
||||||
<option value="dropdown" <?php if($qty_t_type=='dropdown'){ echo "Selected"; } ?>><?php _e('Dropdown List','mage-eventpress'); ?></option>
|
<option value="dropdown" <?php if($qty_t_type=='dropdown'){ echo "Selected"; } ?>><?php _e('Dropdown List','mage-eventpress'); ?></option>
|
||||||
</select></td>
|
</select></td>
|
||||||
|
|
||||||
<td><a class="button remove-row-t" href="#"><?php _e('Remove','mage-eventpress'); ?></a></td>
|
<td>
|
||||||
|
<button class="button remove-row-t"><span class="dashicons dashicons-trash" style="margin-top: 3px;color: red;"></span><?php _e('Remove','mage-eventpress'); ?></button>
|
||||||
|
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
@ -936,16 +970,24 @@ function mep_event_ticket_type() {
|
||||||
|
|
||||||
<!-- empty hidden one for jQuery -->
|
<!-- empty hidden one for jQuery -->
|
||||||
<tr class="empty-row-t screen-reader-text">
|
<tr class="empty-row-t screen-reader-text">
|
||||||
<td><input type="text" class="widefat" name="option_name_t[]" /></td>
|
<td><input type="text" class="widefat" name="option_name_t[]" placeholder="Ex: Adult" /></td>
|
||||||
<td><input type="number" class="widefat" step="0.01" name="option_price_t[]" value="" /></td>
|
<td><input type="number" class="widefat" step="0.01" name="option_price_t[]" placeholder="Ex: 10" value="" /></td>
|
||||||
<td><input type="number" class="widefat" name="option_qty_t[]" value="" /></td>
|
<td><input type="number" class="widefat" name="option_qty_t[]" placeholder="Ex: 15" value="" /></td>
|
||||||
<td><input type="number" class="widefat" name="option_rsv_t[]" value="" /></td>
|
<td><input type="number" class="widefat" name="option_rsv_t[]" placeholder="Ex: 5" value="" /></td>
|
||||||
<td><select name="option_qty_t_type[]" id="mep_ev_9800kj8" class=''><option value=""><?php _e('Please Select Type','mage-eventpress'); ?></option><option value="inputbox"><?php _e('Input Box','mage-eventpress'); ?></option><option value="dropdown"><?php _e('Dropdown List','mage-eventpress'); ?></option></select></td>
|
<td><select name="option_qty_t_type[]" id="mep_ev_9800kj8" class=''><option value=""><?php _e('Please Select Type','mage-eventpress'); ?></option><option value="inputbox"><?php _e('Input Box','mage-eventpress'); ?></option><option value="dropdown"><?php _e('Dropdown List','mage-eventpress'); ?></option></select></td>
|
||||||
<td><a class="button remove-row-t" href="#"><?php _e('Remove','mage-eventpress'); ?></a></td>
|
<td>
|
||||||
|
|
||||||
|
<button class="button remove-row-t"><span class="dashicons dashicons-trash" style="margin-top: 3px;color: red;"></span><?php _e('Remove','mage-eventpress'); ?></button>
|
||||||
|
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<p><a id="add-row-t" class="button" href="#"><?php _e('Add New Ticket Type','mage-eventpress'); ?></a></p>
|
<p>
|
||||||
|
|
||||||
|
<button id="add-row-t" class="button" style="background:green; color:white;"><span class="dashicons dashicons-plus-alt" style="margin-top: 3px;color: white;"></span><?php _e('Add New Ticket Type','mage-eventpress'); ?></button>
|
||||||
|
|
||||||
|
</p>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -969,7 +1011,7 @@ $more_date = get_post_meta($post->ID, 'mep_event_more_date', true);
|
||||||
|
|
||||||
<div class='sec'>
|
<div class='sec'>
|
||||||
<label for="event_start_date"> <?php _e('Start Date & Time:','mage-eventpress'); ?> </label>
|
<label for="event_start_date"> <?php _e('Start Date & Time:','mage-eventpress'); ?> </label>
|
||||||
<span><input class='event_start' id='event_start_date' type="text" name='mep_event_start_date' value='<?php if(array_key_exists('mep_event_start_date', $values)){ echo $values['mep_event_start_date'][0]; } ?>'> </span>
|
<span><input class='event_start' id='event_start_date' type="text" name='mep_event_start_date' placeholder="YYYY-MM-DD" value='<?php if(array_key_exists('mep_event_start_date', $values)){ echo $values['mep_event_start_date'][0]; } ?>'> </span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
@ -991,7 +1033,7 @@ $more_date = get_post_meta($post->ID, 'mep_event_more_date', true);
|
||||||
|
|
||||||
<div class='sec'>
|
<div class='sec'>
|
||||||
<label for="event_end_date"> <?php _e('End Date & Time:','mage-eventpress'); ?> </label>
|
<label for="event_end_date"> <?php _e('End Date & Time:','mage-eventpress'); ?> </label>
|
||||||
<span><input class='event_end' id='event_end_date' type="text" name='mep_event_end_date' value='<?php if(array_key_exists('mep_event_end_date', $values)){ echo $values['mep_event_end_date'][0]; } ?>'> </span>
|
<span><input class='event_end' id='event_end_date' type="text" name='mep_event_end_date' placeholder="YYYY-MM-DD" value='<?php if(array_key_exists('mep_event_end_date', $values)){ echo $values['mep_event_end_date'][0]; } ?>'> </span>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,6 +68,34 @@ if(isset($_POST['mep_event_ticket_type'])){
|
||||||
$user = '';
|
$user = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$mep_event_ticket_type = get_post_meta($product_id, 'mep_event_ticket_type', true);
|
||||||
|
$cnt = 0;
|
||||||
|
$ticket_type_arr = array();
|
||||||
|
foreach($mep_event_ticket_type as $_type){
|
||||||
|
// echo $_type['option_name_t'];
|
||||||
|
$cart_arr = $new[$cnt];
|
||||||
|
// print_r($cart_arr);
|
||||||
|
$name_key = array_search($_type['option_name_t'],$cart_arr);
|
||||||
|
$qty_key = array_search($_type['option_qty_t'],$cart_arr);
|
||||||
|
$total_found = count($name_key);
|
||||||
|
|
||||||
|
if($cart_arr['option_qty'] > 0){
|
||||||
|
|
||||||
|
$ticket_type_arr[$cnt]['ticket_name'] = stripslashes( strip_tags( $cart_arr[$name_key] ) );
|
||||||
|
|
||||||
|
$ticket_type_arr[$cnt]['ticket_qty'] = stripslashes( strip_tags( $cart_arr['option_qty'] ) );
|
||||||
|
|
||||||
|
$ticket_type_arr[$cnt]['ticket_price'] = stripslashes( strip_tags( $cart_arr['option_price'] ) );
|
||||||
|
}
|
||||||
|
|
||||||
|
$cnt++;
|
||||||
|
}
|
||||||
|
|
||||||
|
$cart_item_data['event_ticket_info'] = $ticket_type_arr;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$cart_item_data['event_extra_option'] = $new;
|
$cart_item_data['event_extra_option'] = $new;
|
||||||
$cart_item_data['event_user_info'] = $user;
|
$cart_item_data['event_user_info'] = $user;
|
||||||
$cart_item_data['event_tp'] = $tp;
|
$cart_item_data['event_tp'] = $tp;
|
||||||
|
@ -78,6 +106,7 @@ if(isset($_POST['mep_event_ticket_type'])){
|
||||||
$cart_item_data['event_cart_date'] = $event_cart_date;
|
$cart_item_data['event_cart_date'] = $event_cart_date;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return $cart_item_data;
|
return $cart_item_data;
|
||||||
}
|
}
|
||||||
add_filter( 'woocommerce_add_cart_item_data', 'mep_add_custom_fields_text_to_cart_item', 10, 3);
|
add_filter( 'woocommerce_add_cart_item_data', 'mep_add_custom_fields_text_to_cart_item', 10, 3);
|
||||||
|
@ -92,7 +121,16 @@ $eid = $value['event_id'];
|
||||||
if (get_post_type($eid) == 'mep_events') {
|
if (get_post_type($eid) == 'mep_events') {
|
||||||
$cp = $value['event_tp'];
|
$cp = $value['event_tp'];
|
||||||
$value['data']->set_price($cp);
|
$value['data']->set_price($cp);
|
||||||
|
$value['data']->set_regular_price($cp);
|
||||||
|
$value['data']->set_sale_price($cp);
|
||||||
|
$value['data']->set_sold_individually('yes');
|
||||||
$new_price = $value['data']->get_price();
|
$new_price = $value['data']->get_price();
|
||||||
|
// echo $value['data']->get_regular_price();
|
||||||
|
// echo '<pre>';
|
||||||
|
// print_r(wc_get_product(4045));
|
||||||
|
// echo '</pre>';
|
||||||
|
// die();
|
||||||
|
// update_post_meta($eid,'_price',$cp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -106,6 +144,9 @@ $mep_events_extra_prices = $cart_item['event_extra_option'];
|
||||||
// print_r($cart_item);
|
// print_r($cart_item);
|
||||||
$eid = $cart_item['event_id'];
|
$eid = $cart_item['event_id'];
|
||||||
if (get_post_type($eid) == 'mep_events') {
|
if (get_post_type($eid) == 'mep_events') {
|
||||||
|
|
||||||
|
// print_r($cart_item['event_ticket_info']);
|
||||||
|
|
||||||
echo "<ul class='event-custom-price'>";
|
echo "<ul class='event-custom-price'>";
|
||||||
?>
|
?>
|
||||||
<li><?php _e('Event Date','mage-eventpress'); ?>: <?php echo $cart_item['event_cart_date']; ?></li>
|
<li><?php _e('Event Date','mage-eventpress'); ?>: <?php echo $cart_item['event_cart_date']; ?></li>
|
||||||
|
@ -170,7 +211,7 @@ $form_position = mep_get_option( 'mep_user_form_position', 'general_attendee_sec
|
||||||
$item->add_meta_data('Date',$cart_date);
|
$item->add_meta_data('Date',$cart_date);
|
||||||
$item->add_meta_data('Location',$cart_location);
|
$item->add_meta_data('Location',$cart_location);
|
||||||
|
|
||||||
|
$item->add_meta_data('_event_ticket_info',$values['event_ticket_info']);
|
||||||
|
|
||||||
|
|
||||||
if (is_array($mep_events_extra_prices) || is_object($mep_events_extra_prices)){
|
if (is_array($mep_events_extra_prices) || is_object($mep_events_extra_prices)){
|
||||||
|
@ -212,6 +253,10 @@ $item->add_meta_data('_no_of_ticket',count($event_user_info));
|
||||||
$item->add_meta_data('_event_service_info',$mep_events_extra_prices);
|
$item->add_meta_data('_event_service_info',$mep_events_extra_prices);
|
||||||
$item->add_meta_data('event_id',$eid);
|
$item->add_meta_data('event_id',$eid);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
// update_post_meta($eid,'_price',0);
|
||||||
}
|
}
|
||||||
add_action( 'woocommerce_checkout_create_order_line_item', 'mep_add_custom_fields_text_to_order_items', 10, 4 );
|
add_action( 'woocommerce_checkout_create_order_line_item', 'mep_add_custom_fields_text_to_order_items', 10, 4 );
|
|
@ -103,7 +103,7 @@ $terms = get_terms( array(
|
||||||
<div class="mep-event-cat-controls">
|
<div class="mep-event-cat-controls">
|
||||||
<button type="button" class="mep-cat-control" data-filter="all"><?php _e('All','mage-eventpress'); ?></button><?php
|
<button type="button" class="mep-cat-control" data-filter="all"><?php _e('All','mage-eventpress'); ?></button><?php
|
||||||
foreach ($terms as $_terms) {
|
foreach ($terms as $_terms) {
|
||||||
?><button type="button" class="mep-cat-control" data-filter=".<?php echo $_terms->slug; ?>"><?php echo $_terms->name; ?></button><?php
|
?><button type="button" class="mep-cat-control" data-filter=".<?php echo 'mage-'.$_terms->slug; ?>"><?php echo $_terms->name; ?></button><?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -119,7 +119,7 @@ $terms = get_terms( array(
|
||||||
<div class="mep-event-cat-controls">
|
<div class="mep-event-cat-controls">
|
||||||
<button type="button" class="mep-cat-control" data-filter="all"><?php _e('All','mage-eventpress'); ?></button><?php
|
<button type="button" class="mep-cat-control" data-filter="all"><?php _e('All','mage-eventpress'); ?></button><?php
|
||||||
foreach ($terms as $_terms) {
|
foreach ($terms as $_terms) {
|
||||||
?><button type="button" class="mep-cat-control" data-filter=".<?php echo $_terms->slug; ?>"><?php echo $_terms->name; ?></button><?php
|
?><button type="button" class="mep-cat-control" data-filter=".<?php echo 'mage-'.$_terms->slug; ?>"><?php echo $_terms->name; ?></button><?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -219,7 +219,7 @@ $cat_class = mep_get_term_as_class(get_the_id(),'mep_cat');
|
||||||
|
|
||||||
$available_seat = mep_get_total_available_seat(get_the_id(), $event_meta);
|
$available_seat = mep_get_total_available_seat(get_the_id(), $event_meta);
|
||||||
?>
|
?>
|
||||||
<div class='mep_event_<?php echo $style; ?>_item mix <?php if($tt){ echo $org_class; } ?> <?php if($torg){ echo $cat_class; } ?>'>
|
<div class='mep_event_<?php echo $style; ?>_item mix <?php if($tt){ echo 'mage-'.$org_class; } ?> <?php if($torg){ echo 'mage-'.$cat_class; } ?>'>
|
||||||
<div class="mep_list_thumb">
|
<div class="mep_list_thumb">
|
||||||
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('full'); ?></a>
|
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('full'); ?></a>
|
||||||
<div class="mep-ev-start-date">
|
<div class="mep-ev-start-date">
|
||||||
|
|
|
@ -397,4 +397,10 @@ A. you can create support ticket here with problem details with possible screens
|
||||||
* Update Release:
|
* Update Release:
|
||||||
==> Removed Organizer address php warning issue in dashboard
|
==> Removed Organizer address php warning issue in dashboard
|
||||||
==> Fix woocomerce product showing warning issue in the thankyou page
|
==> Fix woocomerce product showing warning issue in the thankyou page
|
||||||
07 Aug 2019*
|
07 Aug 2019*
|
||||||
|
|
||||||
|
|
||||||
|
*= 2.7.2 =
|
||||||
|
* Update Release:
|
||||||
|
==> Bug Fixed
|
||||||
|
15 Sep 2019*
|
|
@ -47,10 +47,12 @@ $simple_rsv = '';
|
||||||
if (is_array($mep_event_ticket_type) || is_object($mep_event_ticket_type)){
|
if (is_array($mep_event_ticket_type) || is_object($mep_event_ticket_type)){
|
||||||
foreach ($mep_event_ticket_type as $field ) {
|
foreach ($mep_event_ticket_type as $field ) {
|
||||||
$qm = $field['option_name_t'];
|
$qm = $field['option_name_t'];
|
||||||
|
$opt_qty = isset($field['option_qty_t']) ? $field['option_qty_t'] : 0;
|
||||||
|
// $opt_rst_qty = $field['option_rsv_t'] ? $field['option_rsv_t'] : 0;
|
||||||
$tesqn = $post_id.str_replace(' ', '', $qm);
|
$tesqn = $post_id.str_replace(' ', '', $qm);
|
||||||
$tesq = get_post_meta($post_id,"mep_xtra_$tesqn",true);
|
$tesq = get_post_meta($post_id,"mep_xtra_$tesqn",true);
|
||||||
$stc = $stc+$field['option_qty_t'];
|
$stc = $stc+$opt_qty;
|
||||||
$llft = ($field['option_qty_t'] - (int)$tesq);
|
$llft = ($opt_qty - (int)$tesq);
|
||||||
$leftt = $leftt+$llft;
|
$leftt = $leftt+$llft;
|
||||||
}
|
}
|
||||||
}else{$qm='';}
|
}else{$qm='';}
|
||||||
|
@ -128,12 +130,14 @@ if($mep_event_ticket_type){
|
||||||
|
|
||||||
foreach ( $mep_event_ticket_type as $field ) {
|
foreach ( $mep_event_ticket_type as $field ) {
|
||||||
$qm = $field['option_name_t'];
|
$qm = $field['option_name_t'];
|
||||||
|
$opt_qty = isset($field['option_qty_t']) ? $field['option_qty_t'] : 0;
|
||||||
|
$opt_rst_qty = isset($field['option_rsv_t']) ? $field['option_rsv_t'] : 0;
|
||||||
$tesqn = $post->ID.str_replace(' ', '', $qm);
|
$tesqn = $post->ID.str_replace(' ', '', $qm);
|
||||||
$tesq = get_post_meta($post->ID,"mep_xtra_$tesqn",true);
|
$tesq = get_post_meta($post->ID,"mep_xtra_$tesqn",true);
|
||||||
$stc = $stc+$field['option_qty_t'];
|
$stc = $stc+$opt_qty;
|
||||||
$res = $res + (int)$field['option_rsv_t'];
|
$res = $res + (int)$opt_rst_qty;
|
||||||
$res = (int)$res;
|
$res = (int)$res;
|
||||||
$llft = ($field['option_qty_t'] - (int)$tesq);
|
$llft = ($opt_qty - (int)$tesq);
|
||||||
$leftt = ($leftt+$llft);
|
$leftt = ($leftt+$llft);
|
||||||
}
|
}
|
||||||
$leftt = $leftt-$res;
|
$leftt = $leftt-$res;
|
||||||
|
|
|
@ -23,11 +23,13 @@ if($mep_event_ticket_type){
|
||||||
$count =1;
|
$count =1;
|
||||||
foreach ( $mep_event_ticket_type as $field ) {
|
foreach ( $mep_event_ticket_type as $field ) {
|
||||||
$qm = $field['option_name_t'];
|
$qm = $field['option_name_t'];
|
||||||
$rsv = (int)$field['option_rsv_t'];
|
$opt_qty = isset($field['option_qty_t']) ? $field['option_qty_t'] : 0;
|
||||||
|
$opt_rst_qty = isset($field['option_rsv_t']) ? $field['option_rsv_t'] : 0;
|
||||||
|
$rsv = (int)$opt_rst_qty;
|
||||||
$tesqn = $pid.str_replace(' ', '', $qm);
|
$tesqn = $pid.str_replace(' ', '', $qm);
|
||||||
$tesq = get_post_meta($pid,"mep_xtra_$tesqn",true);
|
$tesq = get_post_meta($pid,"mep_xtra_$tesqn",true);
|
||||||
$tesq = ((int)$tesq + (int)$rsv);
|
$tesq = ((int)$tesq + (int)$rsv);
|
||||||
$llft = ($field['option_qty_t'] - (int)$tesq);
|
$llft = ($opt_qty - (int)$tesq);
|
||||||
$qty_t_type = $field['option_qty_t_type'];
|
$qty_t_type = $field['option_qty_t_type'];
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -35,18 +35,20 @@ $res = 0;
|
||||||
|
|
||||||
foreach ( $mep_event_ticket_type as $field ) {
|
foreach ( $mep_event_ticket_type as $field ) {
|
||||||
$qm = $field['option_name_t'];
|
$qm = $field['option_name_t'];
|
||||||
|
$opt_qty = isset($field['option_qty_t']) ? $field['option_qty_t'] : 0;
|
||||||
|
$opt_rst_qty = isset($field['option_rsv_t']) ? $field['option_rsv_t'] : 0;
|
||||||
$tesqn = $post->ID.str_replace(' ', '', $qm);
|
$tesqn = $post->ID.str_replace(' ', '', $qm);
|
||||||
|
|
||||||
$tesq = get_post_meta($post->ID,"mep_xtra_$tesqn",true);
|
$tesq = get_post_meta($post->ID,"mep_xtra_$tesqn",true);
|
||||||
|
|
||||||
$stc = $stc+$field['option_qty_t'];
|
$stc = $stc+$opt_qty;
|
||||||
|
|
||||||
$res = $res + (int)$field['option_rsv_t'];
|
$res = $res + (int)$opt_rst_qty;
|
||||||
|
|
||||||
$res = (int)$res;
|
$res = (int)$res;
|
||||||
|
|
||||||
|
|
||||||
$llft = ($field['option_qty_t'] - (int)$tesq);
|
$llft = ($opt_qty - (int)$tesq);
|
||||||
$leftt = ($leftt+$llft);
|
$leftt = ($leftt+$llft);
|
||||||
}
|
}
|
||||||
$leftt = $leftt-$res;
|
$leftt = $leftt-$res;
|
||||||
|
|
|
@ -32,12 +32,14 @@ $leftt = 0;
|
||||||
$res = 0;
|
$res = 0;
|
||||||
foreach ( $mep_event_ticket_type as $field ) {
|
foreach ( $mep_event_ticket_type as $field ) {
|
||||||
$qm = $field['option_name_t'];
|
$qm = $field['option_name_t'];
|
||||||
|
$opt_qty = isset($field['option_qty_t']) ? $field['option_qty_t'] : 0;
|
||||||
|
$opt_rst_qty = isset($field['option_rsv_t']) ? $field['option_rsv_t'] : 0;
|
||||||
$tesqn = $post->ID.str_replace(' ', '', $qm);
|
$tesqn = $post->ID.str_replace(' ', '', $qm);
|
||||||
$tesq = get_post_meta($post->ID,"mep_xtra_$tesqn",true);
|
$tesq = get_post_meta($post->ID,"mep_xtra_$tesqn",true);
|
||||||
$stc = $stc+$field['option_qty_t'];
|
$stc = $stc+$opt_qty;
|
||||||
$res = $res + (int)$field['option_rsv_t'];
|
$res = $res + (int)$opt_rst_qty;
|
||||||
$res = (int)$res;
|
$res = (int)$res;
|
||||||
$llft = ($field['option_qty_t'] - (int)$tesq);
|
$llft = ($opt_qty - (int)$tesq);
|
||||||
$leftt = ($leftt+$llft);
|
$leftt = ($leftt+$llft);
|
||||||
}
|
}
|
||||||
$leftt = $leftt-$res;
|
$leftt = $leftt-$res;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* 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: 2.7.1
|
* Version: 2.7.2
|
||||||
* 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
|
||||||
|
@ -1060,10 +1060,12 @@ foreach ( $mep_event_ticket_type as $field ) {
|
||||||
$qm = $field['option_name_t'];
|
$qm = $field['option_name_t'];
|
||||||
$tesqn = get_the_id().str_replace(' ', '', $qm);
|
$tesqn = get_the_id().str_replace(' ', '', $qm);
|
||||||
$tesq = get_post_meta(get_the_id(),"mep_xtra_$tesqn",true);
|
$tesq = get_post_meta(get_the_id(),"mep_xtra_$tesqn",true);
|
||||||
$stc = $stc+$field['option_qty_t'];
|
$opt_qty = isset($field['option_qty_t']) ? $field['option_qty_t'] : 0;
|
||||||
$res = $res + (int)$field['option_rsv_t'];
|
$opt_rst_qty = isset($field['option_rsv_t']) ? $field['option_rsv_t'] : 0;
|
||||||
|
$stc = $stc+$opt_qty;
|
||||||
|
$res = $res + (int)$opt_rst_qty;
|
||||||
$res = (int)$res;
|
$res = (int)$res;
|
||||||
$llft = ($field['option_qty_t'] - (int)$tesq);
|
$llft = ($opt_qty - (int)$tesq);
|
||||||
$leftt = ($leftt+$llft);
|
$leftt = ($leftt+$llft);
|
||||||
}
|
}
|
||||||
$leftt = $leftt-$res;
|
$leftt = $leftt-$res;
|
||||||
|
@ -1416,10 +1418,12 @@ function mep_get_event_total_seat($event_id){
|
||||||
$qm = $field['option_name_t'];
|
$qm = $field['option_name_t'];
|
||||||
$tesqn = $event_id.str_replace(' ', '', $qm);
|
$tesqn = $event_id.str_replace(' ', '', $qm);
|
||||||
$tesq = get_post_meta($event_id,"mep_xtra_$tesqn",true);
|
$tesq = get_post_meta($event_id,"mep_xtra_$tesqn",true);
|
||||||
$stc = $stc+$field['option_qty_t'];
|
$opt_qty = isset($field['option_qty_t']) ? $field['option_qty_t'] : 0;
|
||||||
$res = $res + (int)$field['option_rsv_t'];
|
$opt_rst_qty = isset($field['option_rsv_t']) ? $field['option_rsv_t'] : 0;
|
||||||
|
$stc = $stc+$opt_qty;
|
||||||
|
$res = $res + (int)$opt_rst_qty;
|
||||||
$res = (int)$res;
|
$res = (int)$res;
|
||||||
$llft = ($field['option_qty_t'] - (int)$tesq);
|
$llft = ($opt_qty - (int)$tesq);
|
||||||
$leftt = ($leftt+$llft);
|
$leftt = ($leftt+$llft);
|
||||||
}
|
}
|
||||||
$leftt = $leftt-$res;
|
$leftt = $leftt-$res;
|
||||||
|
|
Loading…
Reference in New Issue