version 2.2.3 eleased
This commit is contained in:
parent
4c03435d54
commit
ae2409f1af
|
@ -26,9 +26,11 @@ class MAGE_Events_Setting_Controls {
|
||||||
//initialize settings
|
//initialize settings
|
||||||
$this->settings_api->admin_init();
|
$this->settings_api->admin_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
function admin_menu() {
|
function admin_menu() {
|
||||||
add_options_page( 'Event Settings', 'Event Settings', 'delete_posts', 'mep_event_settings_page', array($this, 'plugin_page') );
|
//add_options_page( 'Event Settings', 'Event Settings', 'delete_posts', 'mep_event_settings_page', array($this, 'plugin_page') );
|
||||||
|
|
||||||
|
add_submenu_page('edit.php?post_type=mep_events', __('Event Settings','mage-eventpress'), __('Event Settings','mage-eventpress'), 'manage_options', 'mep_event_settings_page', array($this, 'plugin_page'));
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_settings_sections() {
|
function get_settings_sections() {
|
||||||
|
@ -82,6 +84,25 @@ class MAGE_Events_Setting_Controls {
|
||||||
'default' => 'no',
|
'default' => 'no',
|
||||||
'options' => event_template_name()
|
'options' => event_template_name()
|
||||||
),
|
),
|
||||||
|
|
||||||
|
array(
|
||||||
|
'name' => 'mep_event_price_show',
|
||||||
|
'label' => __( 'Show Event Price in List?', 'mep' ),
|
||||||
|
'desc' => __( 'Please select if you want to show event price in the list Yes/No', 'mep' ),
|
||||||
|
'type' => 'select',
|
||||||
|
'default' => 'yes',
|
||||||
|
'options' => array(
|
||||||
|
'yes' => 'Yes',
|
||||||
|
'no' => 'No'
|
||||||
|
)
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'name' => 'event-price-label',
|
||||||
|
'label' => __( 'Event Price Label', 'mep' ),
|
||||||
|
'desc' => __( 'Enter The text which you want to show as price label, Its only displayed if Show Event price value is YES above. ', 'mep' ),
|
||||||
|
'type' => 'text',
|
||||||
|
'default' => 'Price Starts from:'
|
||||||
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
'email_setting_sec' => array(
|
'email_setting_sec' => array(
|
||||||
|
|
|
@ -41,7 +41,7 @@ function mep_cpt() {
|
||||||
'public' => true,
|
'public' => true,
|
||||||
'labels' => $labels,
|
'labels' => $labels,
|
||||||
'menu_icon' => 'dashicons-calendar-alt',
|
'menu_icon' => 'dashicons-calendar-alt',
|
||||||
'supports' => array('title','editor','thumbnail'),
|
'supports' => array('title','editor','thumbnail','excerpt'),
|
||||||
'rewrite' => array('slug' => 'events')
|
'rewrite' => array('slug' => 'events')
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
|
@ -46,7 +46,7 @@ function mep_event_available_seat_cb($post){
|
||||||
$values = get_post_custom( $post->ID );
|
$values = get_post_custom( $post->ID );
|
||||||
?>
|
?>
|
||||||
<div class='sec'>
|
<div class='sec'>
|
||||||
<label for="mep_ev_209882"> <?php _e('Show Available Seat?','mage-eventpress'); echo $values['mep_available_seat'][0]; ?>
|
<label for="mep_ev_209882"> <?php _e('Show Available Seat?','mage-eventpress'); ?>
|
||||||
<label class="switch">
|
<label class="switch">
|
||||||
<input type="checkbox" id="mep_ev_209882" name='mep_available_seat' <?php if(array_key_exists('mep_available_seat', $values)){ if($values['mep_available_seat'][0]=='on'){ echo 'checked'; } }else{ echo 'Checked'; } ?>/>
|
<input type="checkbox" id="mep_ev_209882" name='mep_available_seat' <?php if(array_key_exists('mep_available_seat', $values)){ if($values['mep_available_seat'][0]=='on'){ echo 'checked'; } }else{ echo 'Checked'; } ?>/>
|
||||||
<span class="slider round"></span>
|
<span class="slider round"></span>
|
||||||
|
|
|
@ -133,7 +133,8 @@ foreach ($terms as $_terms) {
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$now = date('Y-m-d H:i:s');
|
$now = date('Y-m-d H:i:s');
|
||||||
|
$show_price = mep_get_option( 'mep_event_price_show', 'general_setting_sec', 'yes');
|
||||||
|
$show_price_label = mep_get_option( 'event-price-label', 'general_setting_sec', 'Price Starts from:');
|
||||||
$paged = get_query_var("paged")?get_query_var("paged"):1;
|
$paged = get_query_var("paged")?get_query_var("paged"):1;
|
||||||
if($cat>0){
|
if($cat>0){
|
||||||
$args_search_qqq = array (
|
$args_search_qqq = array (
|
||||||
|
@ -231,7 +232,7 @@ $author_terms = get_the_terms(get_the_id(), 'mep_org');
|
||||||
<div class="mep_list_event_details"><a href="<?php the_permalink(); ?>">
|
<div class="mep_list_event_details"><a href="<?php the_permalink(); ?>">
|
||||||
<div class="mep-list-header">
|
<div class="mep-list-header">
|
||||||
<h2 class='mep_list_title'><?php the_title(); ?></h2>
|
<h2 class='mep_list_title'><?php the_title(); ?></h2>
|
||||||
<h3 class='mep_list_date'> Price Start from: <?php echo 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>
|
<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>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
10
readme.txt
10
readme.txt
|
@ -251,3 +251,13 @@ You can display the event list on any page by using the ShortCode. Just use this
|
||||||
*= 2.2.1 & 2.2.2 =
|
*= 2.2.1 & 2.2.2 =
|
||||||
*Update Release, fixed cart wrong calculation issue. 02 Dec 2018*
|
*Update Release, fixed cart wrong calculation issue. 02 Dec 2018*
|
||||||
|
|
||||||
|
*= 2.2.3 =
|
||||||
|
*Update Release:
|
||||||
|
==> Added custom excerpt option into event
|
||||||
|
==> Fix zero amount add to cart issue
|
||||||
|
==> Showing Not Ticket available message when all tickets sold out
|
||||||
|
==> Price Label settings has been added into Event Settings
|
||||||
|
|
||||||
|
|
||||||
|
. 02 Dec 2018*
|
||||||
|
|
||||||
|
|
|
@ -114,7 +114,11 @@ jQuery(".extra-qty-box").on('change', function() {
|
||||||
total = total + sum;
|
total = total + sum;
|
||||||
// price.closest('tr').find('.cart_total_price').html(sum + "₴");
|
// price.closest('tr').find('.cart_total_price').html(sum + "₴");
|
||||||
});
|
});
|
||||||
|
if(total==0){
|
||||||
|
jQuery('.btn-mep-event-cart').hide();
|
||||||
|
}else if(total>0){
|
||||||
|
jQuery('.btn-mep-event-cart').show();
|
||||||
|
}
|
||||||
jQuery('#usertotal').html("<?php echo get_woocommerce_currency_symbol(); ?>" + total);
|
jQuery('#usertotal').html("<?php echo get_woocommerce_currency_symbol(); ?>" + total);
|
||||||
jQuery('#rowtotal').val(total);
|
jQuery('#rowtotal').val(total);
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ foreach ($mep_events_extra_prices as $field) {
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
if($ext_left>0){
|
||||||
if($qty_type=='dropdown'){ ?>
|
if($qty_type=='dropdown'){ ?>
|
||||||
<select name="option_qty[]" id="eventpxtp_<?php //echo $count; ?>" class='extra-qty-box'>
|
<select name="option_qty[]" id="eventpxtp_<?php //echo $count; ?>" class='extra-qty-box'>
|
||||||
<?php for ($i = 0; $i <= $ext_left; $i++) { ?>
|
<?php for ($i = 0; $i <= $ext_left; $i++) { ?>
|
||||||
|
@ -42,19 +42,13 @@ if($qty_type=='dropdown'){ ?>
|
||||||
</select>
|
</select>
|
||||||
<?php }else{ ?>
|
<?php }else{ ?>
|
||||||
<input id="eventpx" <?php //if($ext_left<=0){ echo "disabled"; } ?> size="4" pattern="[0-9]*" inputmode="numeric" type="number" class='extra-qty-box' name='option_qty[]' data-price='<?php echo $field['option_price']; ?>' value='0' min="0" max="<?php echo $ext_left; ?>">
|
<input id="eventpx" <?php //if($ext_left<=0){ echo "disabled"; } ?> size="4" pattern="[0-9]*" inputmode="numeric" type="number" class='extra-qty-box' name='option_qty[]' data-price='<?php echo $field['option_price']; ?>' value='0' min="0" max="<?php echo $ext_left; ?>">
|
||||||
<?php } ?>
|
<?php } }else{ _e('Not Available','mage-eventpress'); }?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
<td><?php echo get_woocommerce_currency_symbol().$field['option_price']; ?>
|
<td><?php echo get_woocommerce_currency_symbol().$field['option_price']; if($ext_left>0){ ?>
|
||||||
<p style="display: none;" class="price_jq"><?php echo $field['option_price']; ?></p>
|
<p style="display: none;" class="price_jq"><?php echo $field['option_price']; ?></p>
|
||||||
<input type="hidden" name='option_name[]' value='<?php echo $field['option_name']; ?>'>
|
<input type="hidden" name='option_name[]' value='<?php echo $field['option_name']; ?>'>
|
||||||
<input type="hidden" name='option_price[]' value='<?php echo $field['option_price']; ?>'>
|
<input type="hidden" name='option_price[]' value='<?php echo $field['option_price']; ?>'>
|
||||||
|
<?php } ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
|
|
|
@ -36,16 +36,17 @@ $qty_t_type = $field['option_qty_t_type'];
|
||||||
<span class="tkt-qty"> <?php _e('Ticket Qty:','mage-eventpress'); ?> </span>
|
<span class="tkt-qty"> <?php _e('Ticket Qty:','mage-eventpress'); ?> </span>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if($llft>0){
|
if($llft>0){
|
||||||
|
//echo $llft;
|
||||||
if($qty_t_type=='dropdown'){ ?>
|
if($qty_t_type=='dropdown'){ ?>
|
||||||
<select name="option_qty[]" id="eventpxtp_<?php echo $count; ?>" class='extra-qty-box etp'>
|
<select name="option_qty[]" id="eventpxtp_<?php echo $count; ?>" <?php if($llft<=0){ ?> style='display: none!important;' <?php } ?> class='extra-qty-box etp'>
|
||||||
<?php for ($i = 0; $i <= $llft; $i++) { ?>
|
<?php for ($i = 0; $i <= $llft; $i++) { ?>
|
||||||
<option value="<?php echo $i; ?>"><?php echo $i; ?> <?php _e('Ticket','mage-eventpress'); ?></option>
|
<option value="<?php echo $i; ?>"><?php echo $i; ?> <?php _e('Ticket','mage-eventpress'); ?></option>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</select>
|
</select>
|
||||||
<?php }else{ ?>
|
<?php }else{ ?>
|
||||||
<input id="eventpxtp_<?php echo $count; ?>" <?php //if($ext_left<=0){ echo "disabled"; } ?> size="4" pattern="[0-9]*" inputmode="numeric" type="number" class='extra-qty-box etp' name='option_qty[]' data-price='<?php echo $field['option_price_t']; ?>' value='0' min="0" max="<?php echo $llft; ?>">
|
<input id="eventpxtp_<?php echo $count; ?>" <?php //if($ext_left<=0){ echo "disabled"; } ?> size="4" pattern="[0-9]*" inputmode="numeric" type="number" class='extra-qty-box etp' name='option_qty[]' data-price='<?php echo $field['option_price_t']; ?>' value='0' min="0" max="<?php echo $llft; ?>">
|
||||||
<?php } } ?>
|
<?php } }else{ _e('No Seat Available','mage-eventpress'); } ?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -56,10 +57,11 @@ if($qty_t_type=='dropdown'){ ?>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
<td class="ticket-price"><span class="tkt-pric"><?php _e('Per Ticket Price:','mep'); ?></span> <strong><?php echo get_woocommerce_currency_symbol().$field['option_price_t']; ?></strong>
|
<td class="ticket-price"><span class="tkt-pric"><?php _e('Per Ticket Price:','mep'); ?></span> <strong><?php echo get_woocommerce_currency_symbol().$field['option_price_t']; ?></strong>
|
||||||
|
<?php if($llft>0){ ?>
|
||||||
<p style="display: none;" class="price_jq"><?php echo $field['option_price_t']; ?></p>
|
<p style="display: none;" class="price_jq"><?php echo $field['option_price_t']; ?></p>
|
||||||
<input type="hidden" name='option_name[]' value='<?php echo $field['option_name_t']; ?>'>
|
<input type="hidden" name='option_name[]' value='<?php echo $field['option_name_t']; ?>'>
|
||||||
<input type="hidden" name='option_price[]' value='<?php echo $field['option_price_t']; ?>'>
|
<input type="hidden" name='option_price[]' value='<?php echo $field['option_price_t']; ?>'>
|
||||||
|
<?php } ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -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.2.2
|
* Version: 2.2.3
|
||||||
* 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
|
||||||
|
|
Loading…
Reference in New Issue