godaddy-wordpress / wc-plugin-framework

The official SkyVerge WooCommerce plugin framework
Other
138 stars 42 forks source link

Use gateway FW path when loading block handler files #676

Closed itambek-godaddy closed 2 months ago

itambek-godaddy commented 2 months ago

Summary

Some FW files only exist in gateway plugins due to our build process. This change ensures that gateway plugins will load block handler files from the gateway FW path, rather than a generic FW path.

This fix is similar to https://github.com/gdcorp-partners/woocommerce-gateway-intuit-qbms/pull/11/files

Story: MWC-16371

itambek-godaddy commented 2 months ago

@nikolas4175-godaddy thanks for the review and the catch in the path. I did test this with auth.net to see if I would get any fatal errors, but I think I had some other gateway plugin active as well, so the code seemed to work. My apologies, should have been more thorough.