• Hello,

    I have quick question about your code, hope you don’t mind.

    I have WC addon which is working with available payment gateways. This plugin allows you to choose which of the payment gateways will be available in certain country.
    https://wordpress.org/plugins/woocommerce-country-based-payments/

    When my and your plugins are activated on same website, the error occurs in settings page of my plugin.
    The following error is shown:
    Fatal error: Call to a member function get() on null in /var/www/plugin/wp-content/plugins/woocommerce-cod-advanced/woocommerce_advanced_cod.php on line 355.

    This error happens in “adv_cod_filter_gateways” function. Is this function intended to filter payment gateways in admin, or just in front end?

    WP and plugins version: latest.

    Thank you,
    Ivan

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author aheadzen

    (@aheadzen)

    Although it is front end only and plugin hasn’t kept up with woocommerce development for a long time now — that might have caused this error message.

    Thread Starter Ivan Paulin

    (@ivan_paulin)

    Thanks!

    Do you plan to make updates soon?
    Do you think that you can hook this function on front end only? So that it doesn’t interfere with the administration.

    Hi @aheadzen,

    Could you please let us know: how to avoid conflict of this plugin with backend wordpress scripts: “COD Advanced plugin”.

    As whenever this plugin is active, its impact can be seen in :
    Appearance > Menus > no menu would be visible and over the top-right ‘Screen options’ won’t open.

    But when its disabled, it works.
    Now the catch is: you built a nice stuff , but it is conflicting with core stuff of wordpress.

    Hence, how to make it work in harmony.
    Please share your time and quote in order to repair this atleast for community.
    Awaiting your response.

    Hi @ivan_paulin,
    In case you found some workaround to it, then please share.

    Thanks,
    Pawan

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Question about adv_cod_filter_gateways function’ is closed to new replies.