version 2.7.3 released
This commit is contained in:
parent
a57a6d7ac3
commit
74062781a1
|
@ -76,10 +76,13 @@ if(isset($_POST['mep_event_ticket_type'])){
|
|||
// echo $_type['option_name_t'];
|
||||
$cart_arr = $new[$cnt];
|
||||
// print_r($cart_arr);
|
||||
$name_key = array_search($_type['option_name_t'],$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(is_array($name_key)){
|
||||
$total_found = count($name_key);
|
||||
}else{
|
||||
$total_found = 0;
|
||||
}
|
||||
if($cart_arr['option_qty'] > 0){
|
||||
|
||||
$ticket_type_arr[$cnt]['ticket_name'] = stripslashes( strip_tags( $cart_arr[$name_key] ) );
|
||||
|
@ -252,6 +255,7 @@ $item->add_meta_data('_event_user_info',$event_user_info);
|
|||
$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_id',$eid);
|
||||
$item->add_meta_data('_product_id',$eid);
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,11 +1,25 @@
|
|||
<?php
|
||||
if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly.
|
||||
|
||||
add_shortcode( 'event-calendar', 'mep_event_calender' );
|
||||
function mep_event_calender($atts, $content=null){
|
||||
|
||||
|
||||
add_shortcode( 'event-calendar', 'mep_cal_func' );
|
||||
|
||||
|
||||
function mep_cal_func($atts, $content=null){
|
||||
ob_start();
|
||||
echo mep_event_calender();
|
||||
return ob_get_clean();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function mep_event_calender(){
|
||||
|
||||
?>
|
||||
<div class="event-calendar"></div>
|
||||
|
||||
<script>
|
||||
jQuery(document).ready( function() {
|
||||
const myEvents = [
|
||||
|
@ -46,12 +60,11 @@ const myEvents = [
|
|||
class: '',
|
||||
color: '#000',
|
||||
data: {}
|
||||
},<?php //if ($i == $count) { echo "";}else{ echo ","; } ?><?php $i++; } ?>]
|
||||
|
||||
jQuery('.event-calendar').equinox({
|
||||
events: myEvents
|
||||
});
|
||||
},<?php //if ($i == $count) { echo "";}else{ echo ","; } ?><?php $i++; } wp_reset_postdata(); ?>]
|
||||
|
||||
jQuery('.event-calendar').equinox({
|
||||
events: myEvents
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* Plugin Name: Woocommerce Events Manager
|
||||
* Plugin URI: http://mage-people.com
|
||||
* Description: A Complete Event Solution for WordPress by MagePeople..
|
||||
* Version: 2.7.2
|
||||
* Version: 2.7.3
|
||||
* Author: MagePeople Team
|
||||
* Author URI: http://www.mage-people.com/
|
||||
* Text Domain: mage-eventpress
|
||||
|
@ -48,6 +48,9 @@ add_action( 'admin_init', 'mep_flash_permalink_once' );
|
|||
// Class for Linking with Woocommerce with Event Pricing
|
||||
add_action('plugins_loaded', 'mep_load_wc_class');
|
||||
function mep_load_wc_class() {
|
||||
|
||||
|
||||
|
||||
|
||||
if ( class_exists('WC_Product_Data_Store_CPT') ) {
|
||||
|
||||
|
@ -350,7 +353,8 @@ if($mep_stock_order==$order_id){
|
|||
}
|
||||
|
||||
|
||||
if($order->has_status( 'cancelled' )) {
|
||||
if($order->has_status( 'cancelled' ) || $order->has_status( 'refunded' ) || $order->has_status( 'failed' )) {
|
||||
|
||||
update_post_meta( $event_id,$mep_atnd, "a2");
|
||||
update_post_meta( $event_id, $order_meta_text, $order_cancelled);
|
||||
$mep_stock_msg = mep_get_order_info(get_post_meta($event_id,$order_meta_text, true),0);
|
||||
|
@ -1517,12 +1521,6 @@ function mep_get_term_as_class($post_id,$taxonomy){
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}else{
|
||||
function mep_admin_notice_wc_not_active() {
|
||||
$class = 'notice notice-error';
|
||||
|
|
Loading…
Reference in New Issue