• Resolved CodeBrain BV

    (@codebrainbv)


    Hello Support,

    We have build several payment methods for Woocommerce, but in the last update 6.6.0 the payment settings have dissappeared. These were normally shown by using the filter: woocommerce_payment_gateways_settings. However, this doesnt seem to be used anymore, even though documentation states its not deprecated. We can add the configuration to each method, however configuring 10 methods with the same configuration is very customer unfriendly.

    Is this a bug? Even though nothing shows in the debug.log even after activating the debug mode in de wp-config.php. Or is this a design choice?

    I tried to find the filter in Woocommerce, however I can only find 1 instance of the filter.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Igor H

    (@ihereira)

    Hello,

    In this case, you can perform a conflict test:

    • Clear the site cache
    • Temporarily switch your theme to Storefront
    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem

    At this point check if the issue is still present, if not, it means there was a conflict and you can reactivate the theme and plugins gradually one by one and check again after each reactivation until you find the culprit. You can find a more detailed explanation on how to do a conflict test here.

    I hope this helps.

    Thread Starter CodeBrain BV

    (@codebrainbv)

    Thank you for the response Igor.

    I have tried the steps but that didnt solve the issue.

    So i have tried a new installation with WordPress 6.0 and Woocommerce 6.6.0, however it doesnt show the settings either. Is the filter woocommerce_payment_gateways_settings still used?
    I searched the changelogs, but cannot find any reference to it. So it doesnt seem removed or deprecated. I see a call of the filter in woocommerce as well.

    I dont see anything in the logs, even with debugging in wordpress on. No errors in the console either.
    So far i havent been able to solve the issue, nor am i sure what the next step should be.

    Thanks in advance!

    Mirko P.

    (@rainfallnixfig)

    Hi @codebrainbv,

    Thanks for getting back to us.

    The filter woocommerce_payment_gateways_settings was included in the class-wc-settings-checkout.php file in /includes/admin/settings/ until core v. 3.3.5 and it was deprecated with v. 3.4.0. You can compare assets here – https://github.com/woocommerce/woocommerce/releases?page=22.

    You can look for available hooks on the Action and Filter Reference:

    https://woocommerce.github.io/code-reference/hooks/hooks.html

    Mirko P.

    (@rainfallnixfig)

    I actually have to rectify my previous reply. The filter woocommerce_payment_gateways_settings is included in the class-wc-settings-payment-gateways.php file. Here are more details:

    https://github.com/woocommerce/woocommerce/blob/626a409e8396c8d812f487d404c449ff3ce5d290/plugins/woocommerce/includes/admin/settings/class-wc-settings-payment-gateways.php#L65

    a new installation with WordPress 6.0 and Woocommerce 6.6.0, however it doesnt show the settings either

    Are you also using the Storefront theme as suggested above by Igor?

    Mirko P.

    (@rainfallnixfig)

    Hi there,

    We’ve not heard back from you in a while so I’ll go ahead and mark this thread as resolved. Hopefully, you were able to find a solution to this issue.

    If you have further questions, please feel free to open a new topic.

    Thanks.

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

The topic ‘Payment Settings’ is closed to new replies.