• Resolved krashkat

    (@krashkat)


    Hi! I am trying to remove Klarna-message from product page (it slows my product page loading), I found the file the function is located in (class-wc-payments-payment-method-messaging-element.php) and managed to remove the message.

    Though I do not want to edit plugin core files, so I put the copy of class-wc-payments-payment-method-messaging-element.php in my child theme folder, but seems to be it does’t override the core file (tried to put in mychildtheme/woocommerce-payments/class-wc-payments-payment-method-messaging-element.php and mychildtheme/woocommerce-payments/includes/class-wc-payments-payment-method-messaging-element.php)

    Where should I put my copy on the file to make it override the core file?

Viewing 1 replies (of 1 total)
  • Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi @krashkat,

    Thank you for reaching out.

    I understand you’re trying to override a core file of WooPayments plugin.

    Just to clarify, this forum is meant for general support with the core functionality of WooPayments itself. For development and custom coding questions, it’s best to ask for insight related to those on either the?WooCommerce Advanced Facebook group?or the?WooCommerce Community Slack. Many of our developers hang out there and will be able to offer insights into your question.
    I wish I could help more, but hopefully, this gets you going in the right direction to get some further insight/information.

Viewing 1 replies (of 1 total)
  • The topic ‘Editing core php’ is closed to new replies.