Support

Home Forums Event Espresso Premium Ticket Types changes after proceeding to checkout

Ticket Types changes after proceeding to checkout

Posted: September 24, 2019 at 3:55 pm

Viewing 9 reply threads


Alexis Heatherington

September 24, 2019 at 3:55 pm

This is an urgent request. After the user selects a specific ticket type and proceeds to checkout the user sees the ticket type has changes to the first ticket type.


Josh

  • Support Staff

September 24, 2019 at 4:36 pm

Hi,

We received your priority support token request.

Can you deactivate the caching plugin while we troubleshoot?

Also, is there a reason why the Event Espresso plugins haven’t been updated? The reason I ask is because the site has a version of EE4 that was released back in February 2018. Much work has been developed into the software since then, and your site can take advantage of that work after the plugin is updated.


Alexis Heatherington

September 24, 2019 at 4:48 pm

I disabled the caching plugin. I updated event espresso today but the issue remained.


Josh

  • Support Staff

September 24, 2019 at 4:57 pm

It’s a different issue that your site has an old version of EE4. It really should get updated, regardless of this other issue.

May I ask, did you send FTP credentials for the correct server? The reason I ask is because the server I FTP’d into does not have the astra theme in the wp-content directory. The astra theme is the active theme though. Do I have FTP access to the correct server?


Alexis Heatherington

September 24, 2019 at 5:08 pm

This reply has been marked as private.


Josh

  • Support Staff

September 24, 2019 at 5:11 pm

Here’s what I’m seeing in the wp-content/themes directory:

https://slack-files.com/T02SY781D-FNQ30UM5E-2a44780c83

If I had the correct server, wouldn’t I see astra listed there?


Alexis Heatherington

September 24, 2019 at 5:18 pm

I just sshed and I can see the Astra theme here: /var/www/html/wp-content/themes


Alexis Heatherington

September 24, 2019 at 5:18 pm

I just sshed and I can see the Astra theme here: /var/www/html/wp-content/themes


Josh

  • Support Staff

September 24, 2019 at 5:40 pm

Thank you for specifying the location of the site’s files on the server.

The problem you’re seeing is caused by this code that was added to the end of Astra’s functions.php file:

function add_my_script() {
    wp_enqueue_script('dynamic-donate',get_template_directory_uri() . 
'/js/dynamic-donate.js',array('jquery'));
}
add_action( 'wp_enqueue_scripts', 'add_my_script' );

Ideally the script should be loaded onto pages only where it’s needed.

At the very least, you can prevent the conflicting script from loading on the events pages by adding a check for the EE event post type, then return, like this:

function add_my_script() {
	if('espresso_events' == get_post_type()){
		return;
	}
    wp_enqueue_script('dynamic-donate',get_template_directory_uri() . 
'/js/dynamic-donate.js',array('jquery'));
}


Alexis Heatherington

September 24, 2019 at 6:54 pm

Thank you very much Josh, That was the problem. I really appreciate your help. The problem is fixed now.

Viewing 9 reply threads

The support post ‘Ticket Types changes after proceeding to checkout’ 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