Overview
We have identified an issue affecting the visibility of the Antifraud meta boxes on the WooCommerce order screens. Currently, the meta boxes may not appear as expected on the order edit screens under specific configurations. We are planning to address this issue in future releases of our plugin. Until then, we provide two temporary solutions for users experiencing this issue.
Temporary Solutions
Until we release an update that resolves this issue, you can use one of the following two options to manage the visibility of the Antifraud meta boxes:
Option 1: Disable Meta Boxes via Settings Options
You can temporarily disable the Antifraud meta boxes from appearing on any screen. This option is useful if the presence of the meta boxes is causing confusion or cluttering your workflow.'
Steps to Disable:
1. Navigate to the Antifraud plugin settings in your WordPress dashboard.
2. Find the "Settings Options" section at the top of the page.
3. Look for the setting that controls the visibility of the meta boxes.
4. Toggle the setting to disable the meta boxes across all screens.
5. Save your changes.
This will prevent the meta boxes from appearing until you re-enable them, providing a clean interface while we work on a more permanent solution.
Option 2: Modify Plugin Code to Conditionally Display Meta Boxes
For users comfortable with modifying plugin code, you can add a conditional check to ensure that the Antifraud meta boxes only appear on the correct order edit screens.
Code Modification Steps:
class-wc-af-meta-box.php
// Ensure we are on the WooCommerce orders edit page
public function __construct() {
if (isset($_GET['page']) && $_GET['page'] === 'wc-orders' && isset($_GET['action']) && $_GET['action'] === 'edit' && isset($_GET['id'])) {
foreach ( wc_get_order_types( 'order-meta-boxes' ) as $type ) {
opmc_hpos_add_meta_box( 'woocommerce-af-risk', __( 'Fraud Risk', 'woocommerce-anti-fraud' ), array( $this, 'output' ), $type, 'side', 'high' );
}
}
}
class-wc-af-maxmind-meta-box.php
// Ensure we are on the WooCommerce orders edit page
public function __construct() {
if (isset($_GET['page']) && $_GET['page'] === 'wc-orders' && isset($_GET['action']) && $_GET['action'] === 'edit' && isset($_GET['id'])) {
foreach ( wc_get_order_types( 'order-meta-boxes' ) as $type ) {
opmc_hpos_add_meta_box( 'woocommerce-af-maxmind-risk', __( 'MaxMind Risk Score', 'woocommerce-anti-fraud' ), array( $this, 'MaxMindRiskScoreOutput' ), $type, 'side', 'high' );
}
}
}
Future Updates
We are committed to improving the Antifraud plugin and will address this issue in a forthcoming release. The update will ensure that the meta boxes appear only where needed, enhancing both usability and performance. Please keep your plugin updated to receive this and other improvements.
Thank you for your patience and understanding as we work to enhance the Antifraud plugin. If you have any questions or need further assistance, please reach out to our support team.