Support

Home Forums Event Espresso Premium [ESPRESSO_MY_EVENTS] not show multi-pal buy events in (My Account) table

[ESPRESSO_MY_EVENTS] not show multi-pal buy events in (My Account) table

Posted: January 6, 2017 at 5:29 am


kalhadi

January 6, 2017 at 5:29 am

Hello,

Issue: [ESPRESSO_MY_EVENTS] not show multi-pal buy events in (My Account) table

Also active + addon “eea-multi-event-registration”

if user buy 1+ then more events in one checkout time and after completed,
Not show “all Events buy” in table.
It is show only One Event in table.

Plugin version:
– eea-multi-event-registration (2.0.11)
– event-espresso-core-reg(4.9.25)

Please help how to fix issue.

Thanks
Jay


Tony

  • Support Staff

January 17, 2017 at 12:17 pm

Hi Jay,

Are you requesting the ‘Personal Information’ question group for each event?

Also is the user providing a different first name, last name (if required) and email address for each ticket?

Registrations in the My Events section will only show if the registration is assigned to the current users EE Contact, meaning they will only show if the registration was made with the same details used for the EE Contact/WP User account.


kalhadi

January 18, 2017 at 6:14 am

Hello Tony,

I have found issue in below added plugin,
– eea-wp-user-integration

when added multi pal event in cart and generate different ” $att_id ” so this case not show all bought events items in My Account page table.

wrong data print : $template_args = array( ‘event’ => $object, ‘your_tickets_title’ => $your_tickets_title, ‘att_id’ => $att_id );

I am use this short code : [ESPRESSO_MY_EVENTS]

Please let me know how to need which changes?

<table class=”espresso-my-events-table <?php echo $template_slug;?>_table”>
<thead>
<tr>
<th scope=”col” class=”espresso-my-events-event-status ee-status-strip”>
</th>
<th scope=”col” class=”espresso-my-events-event-th”>
<?php echo apply_filters(
‘FHEE__loop-espresso_my_events__table_header_event’,
esc_html__( ‘Title’, ‘event_espresso’ ),
$object_type,
$objects,
$template_slug,
$att_id
); ?>
</th>
<th scope=”col” class=”espresso-my-events-location-th”>
<?php echo apply_filters(
‘FHEE__loop-espresso_my_events__location_table_header’,
esc_html__( ‘Location’, ‘event_espresso’ ),
$object_type,
$objects,
$template_slug,
$att_id
); ?>
</th>
<th scope=”col” class=”espresso-my-events-datetime-range-th”>
<?php echo apply_filters(
‘FHEE__loop-espresso_my_events__datetime_range_table_header’,
esc_html__( ‘When’, ‘event_espresso’ ),
$object_type,
$objects,
$template_slug,
$att_id
); ?>
</th>
<th scope=”col” class=”espresso-my-events-tickets-num-th”>
<?php echo apply_filters(
‘FHEE__loop-espresso_my_events__tickets_num_table_header’,
esc_html__( ‘# Tickets’, ‘event_espresso’ ),
$object_type,
$objects,
$template_slug,
$att_id
); ?>
</th>
<th scope=”col” class=”espresso-my-events-actions-th”>
<?php echo apply_filters(
‘FHEE__loop-espresso_my_events__actions_table_header’,
esc_html__( ‘Actions’, ‘event_espresso’ ),
$object_type,
$objects,
$template_slug,
$att_id
); ?>
</th>
</tr>
</thead>
<tbody>
<?php foreach ( $objects as $object ) :
if ( ! $object instanceof EE_Event ) {
continue;
}
$template_args = array( ‘event’ => $object, ‘your_tickets_title’ => $your_tickets_title, ‘att_id’ => $att_id );
$template = ‘content-espresso_my_events-event_section.template.php’;
EEH_Template::locate_template( $template, $template_args, true, false );
?>
<?php endforeach; ?>
</tbody>
</table>

Thanks,
Jay


Tony

  • Support Staff

January 18, 2017 at 6:50 am

Hi Jay,

Currently what you are seeing sounds like the current expected behavior for WP User Integration add-on. As mentioned above:

Registrations in the My Events section will only show if the registration is assigned to the current users EE Contact, meaning they will only show if the registration was made with the same details used for the EE Contact/WP User account.

Are you requesting the ‘Personal Information’ question group for each event?

Also is the user providing a different first name, last name (if required) and email address for each ticket?


kalhadi

January 19, 2017 at 1:21 am

Hi Tony,

I have made below hook and it will work fine. 🙂

Please let me know this code is okay?
wp-content\themes\themename\functions.php
/*———————————————————————————–*/
/* Multi Class fixed issue in [ESPRESSO_MY_EVENTS] – WP User Integration add-on | InCreativeWeb @ 18 JAN 2017
/*———————————————————————————–*/
add_action( ‘AHEE__thank_you_page_registration_details_template__after_registration_table_row’, ‘multi_cart_attendee_id_update’ );
function multi_cart_attendee_id_update($registration){
global $wpdb;
//$registration->EVT_ID();
$event_id = $registration->event_id();
$reg_code = $registration->REG_code();
$attd_id = get_user_meta(get_current_user_id(), ‘icw_EE_Attendee_ID’, true);

$query = $wpdb->prepare(“UPDATE {$wpdb->prefix}esp_registration SET ATT_ID=%d WHERE EVT_ID=%d AND REG_code=%s”, $attd_id, $event_id, $reg_code);

$is_attd_id = $wpdb->query( $query );
//pr($is_attd_id);
}


Tony

  • Support Staff

January 19, 2017 at 5:23 am

If the registrations you linking them to add their own personal information questions (which would usually be why they have a new attd_id then you’ll likely run into problems with the above).

However you have still not answer my questions so I don’t know if that’s the case.

I don’t know where ‘icw_EE_Attendee_ID’ on user meta is from, the default value used by EE is ‘EE_Attendee_ID’ but if your adding that yourself you’ll know where that value was setup.

So in terms of the code it looks ok, however your changing the expected behavior of EE Contacts within EE which may cause further issues down the line 🙂

The support post ‘[ESPRESSO_MY_EVENTS] not show multi-pal buy events in (My Account) table’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso