I have a problem regarding overriding the file in woocommerce/includes/gateways/bacs/class-wc-gateway-bacs.php
I have edited this file and added some other fields and changed placement order. I have tried the following locations in an attempt to use my version:
- mytheme/woocommerce/includes/gateways/bacs/class-wc-gateway-bacs.php
- mytheme/woocommerce/includes/gateways/class-wc-gateway-bacs.php
- mytheme/woocommerce/includes/bacs/class-wc-gateway-bacs.php
None of the above locations worked. In my previous job I successfully overrode some of the files in woo-commerce by placing overloads within the /templates/ folder to do the trick but this time it is more complicated.
I didn't want to replace the original file to prevent my custom edits being overwritten when the plugin is updated.
Is there's a way to override it?