version 2.7.1 released with some fixing details in readme text file
This commit is contained in:
parent
2d936c2399
commit
2e93e9fa2e
|
@ -390,4 +390,11 @@ A. you can create support ticket here with problem details with possible screens
|
|||
* Update Release:
|
||||
==> Removed Single Price Section
|
||||
==> Added missing values into product set_props
|
||||
18 July 2019*
|
||||
01 Aug 2019*
|
||||
|
||||
|
||||
*= 2.7.1 =
|
||||
* Update Release:
|
||||
==> Removed Organizer address php warning issue in dashboard
|
||||
==> Fix woocomerce product showing warning issue in the thankyou page
|
||||
07 Aug 2019*
|
|
@ -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.0
|
||||
* Version: 2.7.1
|
||||
* Author: MagePeople Team
|
||||
* Author URI: http://www.mage-people.com/
|
||||
* Text Domain: mage-eventpress
|
||||
|
@ -221,9 +221,16 @@ function mep_set_first_order_sts($order_id ){
|
|||
foreach ( $order->get_items() as $item_id => $item_values ) {
|
||||
$item_id = $item_id;
|
||||
}
|
||||
$event_id = mep_event_get_order_meta($item_id,'event_id');
|
||||
$mep_atnd = "_mep_atnd_".$order_id;
|
||||
update_post_meta( $event_id, $mep_atnd, "a1");
|
||||
|
||||
$product_id = mep_event_get_order_meta($item_id,'_product_id');
|
||||
|
||||
if($product_id==0){
|
||||
$event_id = mep_event_get_order_meta($item_id,'event_id');
|
||||
if (get_post_type($event_id) == 'mep_events') {
|
||||
$mep_atnd = "_mep_atnd_".$order_id;
|
||||
update_post_meta( $event_id, $mep_atnd, "a1");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -242,13 +249,15 @@ function mep_event_order_status_make_pending($order_id)
|
|||
$item_quantity = $item_values->get_quantity();
|
||||
$item_id = $item_id;
|
||||
}
|
||||
$ordr_total = $order->get_total();
|
||||
$event_id = mep_event_get_order_meta($item_id,'event_id');
|
||||
if (get_post_type($event_id) == 'mep_events') {
|
||||
$order_meta_text = "_stock_msg_".$order_id;
|
||||
$order_processing = "pending_".$order_id;
|
||||
|
||||
update_post_meta( $event_id, $order_meta_text, $order_processing);
|
||||
$ordr_total = $order->get_total();
|
||||
$product_id = mep_event_get_order_meta($item_id,'_product_id');
|
||||
if($product_id==0){
|
||||
$event_id = mep_event_get_order_meta($item_id,'event_id');
|
||||
if (get_post_type($event_id) == 'mep_events') {
|
||||
$order_meta_text = "_stock_msg_".$order_id;
|
||||
$order_processing = "pending_".$order_id;
|
||||
update_post_meta( $event_id, $order_meta_text, $order_processing);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -259,7 +268,6 @@ add_action('woocommerce_order_status_changed', 'mep_event_seat_management', 10,
|
|||
function mep_event_seat_management( $order_id, $from_status, $to_status, $order ) {
|
||||
global $wpdb;
|
||||
|
||||
|
||||
// Getting an instance of the order object
|
||||
$order = wc_get_order( $order_id );
|
||||
$order_meta = get_post_meta($order_id);
|
||||
|
@ -270,7 +278,10 @@ global $wpdb;
|
|||
$item_quantity = $item_values->get_quantity();
|
||||
$item_id = $item_id;
|
||||
}
|
||||
$ordr_total = $order->get_total();
|
||||
$ordr_total = $order->get_total();
|
||||
$product_id = mep_event_get_order_meta($item_id,'_product_id');
|
||||
if($product_id==0){
|
||||
|
||||
$event_id = mep_event_get_order_meta($item_id,'event_id');
|
||||
|
||||
if (get_post_type($event_id) == 'mep_events') {
|
||||
|
@ -420,6 +431,7 @@ update_post_meta( $event_id, $mep_atnd, "a2");
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -1016,8 +1028,10 @@ $location_sts = get_post_meta($id,'mep_org_address',true);
|
|||
$event_meta = get_post_custom($id);
|
||||
if($location_sts){
|
||||
$org_arr = get_the_terms( $id, 'mep_org' );
|
||||
if(is_array($org_arr) && sizeof($org_arr) > 0 ){
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
echo "<span>".get_term_meta( $org_id, 'org_city', true )."</span>";
|
||||
}
|
||||
}else{
|
||||
|
||||
echo "<span>".$event_meta['mep_city'][0]."</span>";
|
||||
|
@ -1124,19 +1138,26 @@ $location_sts = get_post_meta($event_id,'mep_org_address',true);
|
|||
if($item_name=='mep_location_venue'){
|
||||
if($location_sts){
|
||||
$org_arr = get_the_terms( $event_id, 'mep_org' );
|
||||
|
||||
if(is_array($org_arr) && sizeof($org_arr)>0 ){
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
return get_term_meta( $org_id, 'org_location', true );
|
||||
}
|
||||
}else{
|
||||
return get_post_meta($event_id,'mep_location_venue',true);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
if($item_name=='mep_location_venue'){
|
||||
if($location_sts){
|
||||
$org_arr = get_the_terms( $event_id, 'mep_org' );
|
||||
if(is_array($org_arr) && sizeof($org_arr)>0 ){
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
return get_term_meta( $org_id, 'org_location', true );
|
||||
}
|
||||
|
||||
}else{
|
||||
return get_post_meta($event_id,'mep_location_venue',true);
|
||||
}
|
||||
|
@ -1146,8 +1167,10 @@ if($item_name=='mep_location_venue'){
|
|||
if($item_name=='mep_street'){
|
||||
if($location_sts){
|
||||
$org_arr = get_the_terms( $event_id, 'mep_org' );
|
||||
if(is_array($org_arr) && sizeof($org_arr)>0 ){
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
return get_term_meta( $org_id, 'org_street', true );
|
||||
}
|
||||
}else{
|
||||
return get_post_meta($event_id,'mep_street',true);
|
||||
}
|
||||
|
@ -1157,8 +1180,10 @@ if($item_name=='mep_street'){
|
|||
if($item_name=='mep_city'){
|
||||
if($location_sts){
|
||||
$org_arr = get_the_terms( $event_id, 'mep_org' );
|
||||
if(is_array($org_arr) && sizeof($org_arr)>0 ){
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
return get_term_meta( $org_id, 'org_city', true );
|
||||
}
|
||||
}else{
|
||||
return get_post_meta($event_id,'mep_city',true);
|
||||
}
|
||||
|
@ -1168,8 +1193,10 @@ if($item_name=='mep_city'){
|
|||
if($item_name=='mep_state'){
|
||||
if($location_sts){
|
||||
$org_arr = get_the_terms( $event_id, 'mep_org' );
|
||||
if(is_array($org_arr) && sizeof($org_arr)>0 ){
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
return get_term_meta( $org_id, 'org_state', true );
|
||||
}
|
||||
}else{
|
||||
return get_post_meta($event_id,'mep_state',true);
|
||||
}
|
||||
|
@ -1180,8 +1207,10 @@ if($item_name=='mep_state'){
|
|||
if($item_name=='mep_postcode'){
|
||||
if($location_sts){
|
||||
$org_arr = get_the_terms( $event_id, 'mep_org' );
|
||||
if(is_array($org_arr) && sizeof($org_arr)>0 ){
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
return get_term_meta( $org_id, 'org_postcode', true );
|
||||
}
|
||||
}else{
|
||||
return get_post_meta($event_id,'mep_postcode',true);
|
||||
}
|
||||
|
@ -1191,8 +1220,10 @@ if($item_name=='mep_postcode'){
|
|||
if($item_name=='mep_country'){
|
||||
if($location_sts){
|
||||
$org_arr = get_the_terms( $event_id, 'mep_org' );
|
||||
if(is_array($org_arr) && sizeof($org_arr)>0 ){
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
return get_term_meta( $org_id, 'org_country', true );
|
||||
}
|
||||
}else{
|
||||
return get_post_meta($event_id,'mep_country',true);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue