diff --git a/inc/admin_setting_panel.php b/inc/admin_setting_panel.php index 67bc1b5..862d55c 100644 --- a/inc/admin_setting_panel.php +++ b/inc/admin_setting_panel.php @@ -167,6 +167,17 @@ if (!class_exists('MAGE_Events_Setting_Controls')) : 'no' => 'No' ) ), + array( + 'name' => 'mep_show_product_cat_in_event', + 'label' => __('Show Product Category in Event?', 'mage-eventpress'), + 'desc' => __('Want to show Product Category in Event Edit Page? If you want set product category based coupon code you need to assign event into Product category, Please set yes only when you need it', 'mage-eventpress'), + 'type' => 'select', + 'default' => 'no', + 'options' => array( + 'yes' => 'Yes', + 'no' => 'No' + ) + ), array( 'name' => 'mep_global_single_template', 'label' => __('Event Details Template', 'mage-eventpress'), diff --git a/inc/mep_event_meta.php b/inc/mep_event_meta.php index 1cfbf9b..14dbcb9 100644 --- a/inc/mep_event_meta.php +++ b/inc/mep_event_meta.php @@ -19,7 +19,7 @@ class MP_Event_All_Info_In_One public function mp_event_all_in_tab() { $event_label = mep_get_option('mep_event_label', 'general_setting_sec', 'Events'); - $post_id = get_the_id(); + $post_id = get_the_id(); ?>