Title: Plugin Conflict
Last modified: April 23, 2024

---

# Plugin Conflict

 *  [Brandon Ernst](https://wordpress.org/support/users/brandonfire/)
 * (@brandonfire)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/plugin-conflict-425/)
 * Hi there,
 * We’re the developers behind another plugin on the repo:
 * [https://wordpress.org/plugins/domain-mapping-system/](https://wordpress.org/plugins/domain-mapping-system/)
 * One of the users of your plugin contacted us about a conflict. When both plugins
   are activated, the content that is displayed for an alias domain in our plugin
   is incorrectly showing the homepage content instead of a mapped page.
 * Our developers have identified the function below in the Elex_CM_Price_Discount_Admin
   class. The function runs on the construct function when the wp hook is fired.
 * Our developers are unsure of the purpose of using the wp_reset_query() function
   after getting $cart and $checkout variables because sometimes they can be false
   and their redirection will not happen.
 * They believe it would be better to move the calling of the wp_reset_query() function
   when checking “if ( $hide && ( $cart || $checkout ) )” returns true.
 * Otherwise, if the call of the wp_reset_query function is principal and makes 
   sense, we can create some flag in our plugin’s relevant class, and if the your
   plugin can check if our flag returns true, then it will not call the wp_reset_query()
   function.
 * `public function elex_cm_hide_cart_checkout_pages() { $hide = false; if ( 'yes'
   == get_option( 'eh_pricing_discount_cart_catalog_mode_remove_cart_checkout' )){
   if ( ! ( get_option( 'eh_pricing_discount_price_catalog_mode_exclude_admin' )
   == 'yes' && 'administrator' == $this->current_user_role ) ) { $hide = true; }}
   $cart = is_page( wc_get_page_id( 'cart' ) ); $checkout = is_page( wc_get_page_id('
   checkout' ) ); wp_reset_query(); if ( $hide && ( $cart || $checkout ) ) { wp_redirect(
   home_url() ); exit; } }`
 * Please let me know if you can share any insight on this issue, and I greatly 
   appreciate your assistance. Happy to communicate via [support@gauchoplugins.com](https://wordpress.org/support/topic/plugin-conflict-425/support@gauchoplugins.com?output_format=md).
 * Greatly appreciated!

Viewing 1 replies (of 1 total)

 *  Plugin Author [ELEXtensions](https://wordpress.org/support/users/elextensions/)
 * (@elextensions)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/plugin-conflict-425/#post-17710902)
 * Hello [@brandonfire](https://wordpress.org/support/users/brandonfire/),
 * We have released a new version of our plugin. Please update to the latest one
   and let us know if you still face the compatibility issues.
 * Looking forward to hearing from you

Viewing 1 replies (of 1 total)

The topic ‘Plugin Conflict’ is closed to new replies.

 * ![](https://ps.w.org/elex-woocommerce-catalog-mode/assets/icon-256x256.png?rev
   =2802427)
 * [ELEX WooCommerce Catalog Mode](https://wordpress.org/plugins/elex-woocommerce-catalog-mode/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elex-woocommerce-catalog-mode/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elex-woocommerce-catalog-mode/)
 * [Active Topics](https://wordpress.org/support/plugin/elex-woocommerce-catalog-mode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elex-woocommerce-catalog-mode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elex-woocommerce-catalog-mode/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [ELEXtensions](https://wordpress.org/support/users/elextensions/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/plugin-conflict-425/#post-17710902)
 * Status: not resolved