Support

Home Forums Event Espresso Premium Venue Location in Table

Venue Location in Table

Posted: February 18, 2021 at 4:58 am


Mark

February 18, 2021 at 4:58 am

Hi!
I want to display the location of the event in the table list of the upcoming event instead of venue link.
And could you brief me what is venue link? I mean to say, what is it for, to display the venue of the event or anything else? Because I can’t understand what is actually the link for?
Look at the SS:
https://www.screenpresso.com/=PdP1e
Thanks.


Mark

February 18, 2021 at 5:00 am

I want this data to be displayed in my event table list.
https://www.screenpresso.com/=KXWjb
Thanks.


Tony

  • Support Staff

February 18, 2021 at 5:42 am

Hi Mark,

I want to display the location of the event in the table list of the upcoming event instead of venue link.

May I ask where are you getting ‘venue link’ from?

The section you’ve highlighted on the screenshot is the venue name, which on your site ‘Venue of Workplace Approved First Aid and CPR Re-Certification’ which is why it doesn’t make sense.

I’m the UK, so if I setup a Venue of say ‘Buckingham Palace’, that table would display the name in the table. People registering would either already know what that was, or be able to Google it if they wish. Although, the full address details for the venue will already be shown on the single event page anyway.

And could you brief me what is venue link? I mean to say, what is it for, to display the venue of the event or anything else?

I’m not sure I understand your question, but again, the table displays the Venue name by default and yes, it is the venue name of the venue linked to the event, I’m not sure why would list another venue there?

Based on your screenshots you want to display the Venue address, which can be done but you’ll need to load your own template for the table add-on to change the code.

Copy \eea-events-table-template\templates\espresso-events-table-template.template.php

Into the root directory of your child theme.

Line 115 has espresso_venue_name( NULL, FALSE );

We have a espresso_venue_address() template tag for Venue address so you could use that, or build out your own way to display the address if needed.


Mark

February 18, 2021 at 6:02 am

Hi Tony
I am migrated from the EE3 to EE4 so what table data of EE3 becomes Venue in EE4?
Any idea?


Mark

February 18, 2021 at 6:39 am

May I ask where are you getting ‘venue link’ from?

This is where I getting venue link from
https://www.screenpresso.com/=YgR6g


Tony

  • Support Staff

February 18, 2021 at 6:44 am

I am migrated from the EE3 to EE4 so what table data of EE3 becomes Venue in EE4?

The venue assigned to the EE3 event should be created in EE4 and then assigned to the new event.

So whatever the venue is in EE3 should also be set in EE4.

This is where I getting venue link from
https://www.screenpresso.com/=YgR6g

I guess I’m getting confused a little here, that’s a totally different output to the event table, so doesn’t fit with:

I want to display the location of the event in the table list of the upcoming event instead of venue link.

So its not the table view you want to change but the venue link single event output?

To answer why that is there, the single event section shows the location data for the venue with a link to click through to the venue post itself. That page could (although yours currently does not) have additional details about the venue.

Go to Event Espresso -> Venues.

Find the venue in question and you can edit the details there, what should be shown on the venue page.


Mark

February 18, 2021 at 7:06 am

So it’s not the table view you want to change but the venue link single event output?

You are very right.

Actually, I mixed things up. I want the address in the event list table which I get it from your first reply. That’s ok.

Now I am asking that you said that the additional option of the event venue which was set in the EE3 has now become the CPT in EE4, and when I looked into my EE3 dashboard, the Venu option doesn’t have any value although I set the physical location of the event.
But now in EE4 why it becomes the venue = venue + eventName.
Don’t you think that is a bug (logical bug) in migration?

Because now I have a lot of venues in venue CPT and I don’t want those venues or have to change those venues that consume a lot of my precious time.

Now, what should I do? Because I don’t set any venue in EE3 but it is now in EE4. How can I come up with any possible solution?


Tony

  • Support Staff

February 18, 2021 at 7:51 am

If you have values set for a location, then EE3 considers that your venue, therefore so does EE4.

With EE3 there is a ‘Venue Manager’ which basically allows you to create reusable venues so you didn’t need to retype the info but even if you don’t have a ‘Venue’ set from the venue manage (if indeed you are using it) but have a location set, its a venue within EE3.

But now in EE4 why it becomes the venue = venue + eventName.

That will happen if you don’t have a Venue Title set within the EE3 event but have a location, it will generate a new venue for the specific event it is processing and use ‘Venue of {$event_name}’ for that venue.

Don’t you think that is a bug (logical bug) in migration?

Possibly, I’ll check with the developers on this.

Because now I have a lot of venues in venue CPT and I don’t want those venues or have to change those venues that consume a lot of my precious time.

You had those in EE3 but only they were set on the event itself, so if you needed to change the address of the venue you were using (if all the same) you would have had to update each individual event.

Now, what should I do? Because I don’t set any venue in EE3 but it is now in EE4. How can I come up with any possible solution?

You did set a venue, you had a location set on the EE3 event, so its a venue. The problem is you didn’t have a Venue Title set so the migration is creating unique Venues for EE4.

Are they all using the same venue details? (Address info)


Mark

February 18, 2021 at 8:15 am

Are they all using the same venue details? (Address info)

Yes, they all have the same address.


Tony

  • Support Staff

February 23, 2021 at 2:29 am

I did some digging into this and have a suggestion on a possible fix.

Note this should currently be considered unofficial and untested but you are welcome to try it whilst we test this internally.

Before running migration, edit \event-espresso-core\core\data_migration_scripts\4_1_0_stages\EE_DMS_4_1_0_events.dmsstage.php

On line 528 should be the _duplicate_venue_exists method.

Within that find this line:

'post_title'=> $this->_get_venue_title_for_event($old_event),

Comment that out:

//'post_title'=> $this->_get_venue_title_for_event($old_event),

Now the migration will search for an existing venue based purely on the address, which means rather than X duplicate venues with the same address you’ll have 1 venue linked to all of those events. Note that the Venue title (and slug) will likely be ‘wrong’ but you can edit those in he admin.

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: publish

Updated by  Tony 1 week, 1 day ago ago

Topic Tags

Tagged: 

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!