fixed category template issue

This commit is contained in:
magepeopleteam 2018-02-19 11:41:10 +00:00
parent 8e8513d6d3
commit 264da4a9ae
2 changed files with 22 additions and 2 deletions

View File

@ -16,7 +16,7 @@ $term_id = get_queried_object()->term_id;
'posts_per_page' => -1, 'posts_per_page' => -1,
'tax_query' => array( 'tax_query' => array(
array( array(
'taxonomy' => 'mep_org', 'taxonomy' => 'mep_cat',
'field' => 'term_id', 'field' => 'term_id',
'terms' => $term_id 'terms' => $term_id
) )

View File

@ -3,7 +3,7 @@
* Plugin Name: Mage Woo Event Booking Manager * Plugin Name: Mage Woo Event Booking 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: 1.0.1 * Version: 1.0.2
* Author: MagePeople Team * Author: MagePeople Team
* Author URI: http://www.mage-people.com/ * Author URI: http://www.mage-people.com/
*/ */
@ -298,6 +298,26 @@ function mep_event_seat_management( $order_id, $from_status, $to_status, $order
} }
if( $order->has_status('on-hold')) {
update_post_meta( $event_id, $order_meta_text, $order_processing);
$mep_stock_msg = mep_get_order_info(get_post_meta($event_id,$order_meta_text, true),0);
$mep_stock_order = mep_get_order_info(get_post_meta($event_id,$order_meta_text, true),1);
if($mep_stock_order==$order_id){
if($mep_stock_msg=='completed'){
update_post_meta( $event_id, $order_meta_text, $order_processing);
}
else{
update_post_meta( $event_id, 'total_booking', ($mep_total_booking+$item_quantity));
update_post_meta( $event_id, $order_meta_text, $order_processing);
}
}
}
if($order->has_status( 'cancelled' )) { if($order->has_status( 'cancelled' )) {
update_post_meta( $event_id, $order_meta_text, $order_cancelled); update_post_meta( $event_id, $order_meta_text, $order_cancelled);