Conversation
supportHi @jasonkytros Would it be possible to make the Gift Cards – Coupon Input plugin compatible with Woocomerce High-Performance Order Storage please? I’m keen to switch to this new process, but your plugin is listed as incompatible. Thank you for your help!
Hi @jasonkytros Any update on this please? Thank you for your help!
Hello again @jasonkytros I’ve been looking in to it as I couldn’t work out how or why this wouldn’t be compatible with HPOS lol! So it seems you have to specifically declare compatibility, details are here: https://developer.woocommerce.com/docs/hpos-extension-recipe-book/ I think I managed to resolve things by added the following to the plugin: add_action( 'before_woocommerce_init', function() { if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) { \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', FILE , true ); } } ); If there’s any reason I shouldn’t have added this please let me know 🙂 Kind regards, JP This reply was modified 2 years ago by JapeNZ .
Hi @jasonkytros Any update on this please? Thank you for your help!
Hello again @jasonkytros I’ve been looking in to it as I couldn’t work out how or why this wouldn’t be compatible with HPOS lol! So it seems you have to specifically declare compatibility, details are here: https://developer.woocommerce.com/docs/hpos-extension-recipe-book/ I think I managed to resolve things by added the following to the plugin: add_action( 'before_woocommerce_init', function() { if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) { \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', FILE , true ); } } ); If there’s any reason I shouldn’t have added this please let me know 🙂 Kind regards, JP This reply was modified 2 years ago by JapeNZ .