Support

Home Forums Event Espresso Premium Problem Updating the plugin

Problem Updating the plugin

Posted: February 22, 2017 at 12:28 am


rescon

February 22, 2017 at 12:28 am

Hello Guys … I have EE3 installed on my website and decided to update it … but when I go to the plugins area to update there is this notice below it please see this screenshot … So I initiated a reset request from my ee account. Now that I have the license key resetted and I went in to my site to add it and activate it … I pasted the key in to General Settings –> Support License but I still seeing the message in the screenshot above and in my ee account it says that “Not currently activated on any websites” … Can you please help me with this and reply asap … I am hoping to resolve this asap and update the plugin to the latest version. Hoping to hear from you soon.


Tony

  • Support Staff

February 22, 2017 at 4:41 am

Hi there,

Currently you have the EE4 Everything license, which includes EE4 and all of its
add-ons but not EE3 (and its add-ons)

EE3 and EE4 are separate systems (although you can update from EE3 to EE4)

Your site is currently running EE3 and the message is showing an update is available for EE3, but as you license is for EE4 you don’t have access to it.

We can help get you setup correctly, however can you let me know if you are wanting to use the latest version of EE3 or are you updating to EE4?

(Note EE4 works very differently from EE3, it is recommended to update a development copy of the site first to confirm everything functions as expected)


rescon

February 22, 2017 at 5:07 am

I have been happy with EE3 … I am assuming that there is no Event Espresso – Members Addon for EE4 … also the template/theming is different from EE3 ??


rescon

February 22, 2017 at 5:11 am

By theming/templating I mean what if I want the same style for the frontend I have with EE3 … can I transfer that style to EE4 ? if yes then how ? I have the template files in /wp-content/uploads/espresso/templates


Tony

  • Support Staff

February 22, 2017 at 5:18 am

I have been happy with EE3 … I am assuming that there is no Event Espresso – Members Addon for EE4

There is: https://eventespresso.com/product/eea-wp-user-integration/

It works a little differently that EE3, for the EE4 add-on save the registrations for the user the details entered onto the registration info must match the users account.

By theming/templating I mean what if I want the same style for the frontend I have with EE3 … can I transfer that style to EE4 ? if yes then how ? I have the template files in /wp-content/uploads/espresso/templates

Nothing within EE3 is compatible with EE4.

EE3 used its own templates for all output which I’m assuming you’ll know well as you have custom templates.

EE4 uses some of its own templates but it uses the sites theme to output the event details.

If you want the same output as EE3 with EE4 you will need to re-create the templates to suit.


rescon

February 22, 2017 at 6:03 am

Is there a tutorial on how can I create templates for EE4


rescon

February 22, 2017 at 6:05 am

I mean any documentation regarding theming/templating ?


Tony

  • Support Staff

February 22, 2017 at 9:02 am

We don’t, mainly because EE uses your sites theme to output the details each theme template will be different so the tutorial may be very different than what your looking at.

We do have some information on which templates load here:

https://gist.github.com/lorenzocaum/0a35fe4997992fdb1dc5

EE4 has templates within \event-espresso-core-reg\public\Espresso_Arabica_2014\ which gives you an example of how you can control the full output from Event Espresso however those template files are based on twentyfourteen, your theme template files may be different.


rescon

February 22, 2017 at 10:46 pm

Hello Tony … thanks for the reply … one more question … does EE4 have a coupon and discount code addon ?


Tony

  • Support Staff

February 23, 2017 at 8:25 am

That it does: https://eventespresso.com/product/eea-promotions/

Note that EE4 promotions currently can only be applied per event, not pet ticket. So if your tickets are $10 and you select 3 of them, then have a promotion code for $8 the amount to pay would be $22 (not $6 as it would be in EE3)


rescon

March 2, 2017 at 7:08 am

Thanks for the gist link it really helped a lot in understanding how EE4 templates work … Is there a method to get the featured image of an event … I was hoping something like these template tags mentioned here https://eventespresso.com/wiki/ee4-themes-templates/


rescon

March 2, 2017 at 7:10 am

It would be really helpful if I can get a list of methods for EE4 …


Josh

  • Support Staff

March 2, 2017 at 7:42 am

Hi Rescon,

You can actually use just about any of the related WordPress functions if they’re post related things like featured images. e.g.

https://developer.wordpress.org/reference/functions/the_post_thumbnail/


rescon

March 3, 2017 at 5:48 am

Great thanks … but what if I want to get Event Espresso related information … like event date, event status … ETC


Josh

  • Support Staff

March 3, 2017 at 8:17 am

There are template tags for the event date, event status, and etc:

https://eventespresso.com/wiki/ee4-themes-templates/

If you need to get data for something that doesn’t have a template tag, you can also use the models and build your own custom template tags too. Here’s a link to the documentation for the models system:

https://github.com/eventespresso/event-espresso-core/tree/master/docs/G–Model-System


rescon

March 5, 2017 at 11:48 pm

Hello Josh … I am trying to get the description of the event using the EE_Event object like this $eventobj->desc() and also by using $eventobj->desc but both are not working … it works if I get the name $eventobj->name() … I am following the docs on github …


rescon

March 6, 2017 at 12:26 am

Correction … it also not working for the name as well … One question … please see this screenshot http://prntscr.com/egkbh9 … I highlighted a function in it … please can you tell me how these functions are determined I mean I don’t see any pattern on which these can be used … Bit confused here …


rescon

March 6, 2017 at 4:57 am

Hello Josh … can you let me know how can I get the google map link for the venue … I used the function that is in the plugin … but I don’t see any map showing up nor I can see any link being generated …


Tony

  • Support Staff

March 6, 2017 at 7:09 am

The easiest way to see all of the available methods on the object you currently have is to use Kint Debugger then wrap the object in d();.

Hello Josh … I am trying to get the description of the event using the EE_Event object like this $eventobj->desc() and also by using $eventobj->desc but both are not working … it works if I get the name $eventobj->name() … I am following the docs on github …

There is no method called desc() nor a property called desc which is why neither of those work.

description_filtered() should work but it depends what it is you are doing.

Correction … it also not working for the name as well

With the code your using it should work fine for EE events when you output the name.

please can you tell me how these functions are determined I mean I don’t see any pattern on which these can be used

I’m not sure what pattern you would expect to see?

I’d recommend using Kint above, you can then see all of the available methods using that.

can you let me know how can I get the google map link for the venue … I used the function that is in the plugin … but I don’t see any map showing up nor I can see any link being generated …

Which function did you use?

We have a template tag to output the venue map, you should be able to use espresso_venue_gmap( $post->ID )


rescon

March 6, 2017 at 8:39 am

Hello Tony … please see this screenshot http://prntscr.com/egpxjw I am trying to get the output of the highlighted object but it does not output anything I am following the method mentioned here at the end https://github.com/eventespresso/event-espresso-core/blob/master/docs/G–Model-System/ee-model-objects-and-custom-post-types.md … Also can you clarify from where I can find these functions description_filtered() for EE4 ??


Tony

  • Support Staff

March 6, 2017 at 9:10 am

Hello Tony … please see this screenshot http://prntscr.com/egpxjw

Right, that’s a property called ‘EVT_desc’ (not ‘desc’), its ‘protected’ which means you can not access it from outside of the class.

trying to get the output of the highlighted object but it does not output anything

Then use the method I provided above:

$description = $event_obj->description_filtered();

Also can you clarify from where I can find these functions description_filtered() for EE4 ??

The easiest way is to use Kint debugger as I mentioned above. Grab the object you need to work with and wrap it within d(); You’ll see a list of all available method you can use to output the data, like this – http://take.ms/SnSsJ

If you mean looking through the code to find the methods it’s a little more complicated but you can start by looking through:

\core\db_classes\EE_Event.class.php


rescon

March 7, 2017 at 3:49 am

Thanks Tony … it worked and I love the kint debugger it is a great tool … More more thing I need to add a custom field for so I can add a url of a uploaded pdf document …


Tony

  • Support Staff

March 7, 2017 at 3:55 am

To the event post?

The events are custom post types so you can add (and retrieve) custom fields in the same way you do with any other post:

https://codex.wordpress.org/Custom_Fields

http://www.wpbeginner.com/wp-tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks/


rescon

March 7, 2017 at 6:02 am

Thanks thats very helpful


rescon

March 7, 2017 at 6:08 am

I was using Event Espresso – Members Addon and Event Espresso – Multi Event Registration with EE3 … will these extensions still work with EE4 ?


Josh

  • Support Staff

March 7, 2017 at 7:49 am

You can use the EE4 compatible versions which are available from your EE4 Everything license.

https://eventespresso.com/wiki/ee4-multiple-event-registration-add-on/

https://eventespresso.com/wiki/wp-user-integration/#ee4installation

The support post ‘Problem Updating the plugin’ 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