Support

Home Forums Event Espresso Premium Apply Payment manually not working

Apply Payment manually not working

Posted: January 6, 2020 at 10:06 am

Viewing 9 reply threads


creativespiritssf1

January 6, 2020 at 10:06 am

We have the “pay by check” option enabled for our site, and we want to record the payments when they are received. BUT, when we click the “Apply Payment” button on the transaction page, the window opens, but it’s grayed/faded out and we cannot make changes. Any suggestions on how to get this to work?


Josh

  • Support Staff

January 6, 2020 at 10:21 am

Hi,

This may be the result of a plugin/theme conflict. If you can check the browser console for errors (JavaScript errors, to be specific) then you might find which plugin/theme file is causing the error.


creativespiritssf1

January 6, 2020 at 10:22 am

It looks like it’s an issue with our theme… so I guess we are out of luck unless we change the theme?


Tony

  • Support Staff

January 6, 2020 at 11:08 am

What is the error being thrown and which theme are you using?

We may be able to give you a snippet to prevent whatever script is loading from doing so on the editor.


creativespiritssf1

January 6, 2020 at 11:22 am

We are using EcoRecycle theme: https://themeforest.net/item/eco-recycling-a-multipurpose-nature-ecology-wordpress-theme-/7970296

Here are the errors in the js console:

ReferenceError: Can’t find variable: enableClasses
(anonymous function) β€” modernizr.mq.js:201
(anonymous function) β€” jquery.isotope.min.js:49:816
Global Code β€” jquery.isotope.min.js:49:15700
shortcode.js:542

TypeError: $container.isotope is not a function. (In ‘$container.isotope({
itemSelector : ‘#shortcodes_buttons .shortcode-buttons’
})’, ‘$container.isotope’ is undefined)
[Error] TypeError: $container.isotope is not a function. (In ‘$container.isotope({
itemSelector : ‘#shortcodes_buttons .shortcode-buttons’
})’, ‘$container.isotope’ is undefined)
(anonymous function) (shortcode.js:542)
i (load-scripts.php:2:27368)
fireWith (load-scripts.php:2:28123)
ready (load-scripts.php:2:29926)
J (load-scripts.php:2:30282)


Josh

  • Support Staff

January 6, 2020 at 2:17 pm

Those errors can be avoided by simply removing the theme’s scripts from the admin pages the scripts don’t belong on. Can you share a temporary download link for the theme files? If so, we can help you put together a code snippet that will remove the errant scripts. If not, you can contact the theme developer for further support.


creativespiritssf1

January 6, 2020 at 2:25 pm

This reply has been marked as private.


Josh

  • Support Staff

January 6, 2020 at 5:02 pm

Hi,

Thanks. The following code will remove the assets loaded by the Page building plugin. This will have an effect only on the Event Espresso Transactions pages (the assets will continue to load everywhere else in the admin)

add_action(
    'FHEE__EE_Admin_Page___load_page_dependencies__after_load__espresso_transactions__view_transaction',
    'no_page_builder_assets_here'
);

function no_page_builder_assets_here() {
    add_action(
        'admin_enqueue_scripts',
        function(){
            remove_action('admin_enqueue_scripts', 'pmc_shortcodes_admin');
        },
        9
    );
}

You can add the above to a functions plugin or, if available, into your WordPress child theme’s functions.php file.


creativespiritssf1

January 7, 2020 at 9:37 am

Thank you for your magic and wizardry! I just tried this out and it works great. πŸ˜‰


Josh

  • Support Staff

January 7, 2020 at 1:05 pm

Great to hear it’s working for you. If you find other, similar issues on other admin pages of the site please let us know and we can look into adding on to the “do not load page builder stuff onto these admin pages” list.

WordPress makes this all possible with its plugin API/hooks system.

Viewing 9 reply threads

The support post ‘Apply Payment manually not working’ 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