WP Global Cart >
Articles >
Fix the notice “COOKIE_DOMAIN constant already defined. The SSO and cart cross-domain features possible not fully functional.”
Fix the notice “COOKIE_DOMAIN constant already defined. The SSO and cart cross-domain features possible not fully functional.”
In WordPress the COOKIE_DOMAIN constant is used to specify the CMS cookie for unusual domain setups. The plugin use this constant to handle SSO and some of the cross-domain features.
If the constant is already defined, this must be removed or commented out. Most of the time it can be found in wp-config.php file and looks like this:
define( 'COOKIE_DOMAIN', 'mydomain.com' );
The notice appear on SuperAdmin dashboard on top of page:
In majority of cases the constant is defined by “WordPress MU Domain Mapping” plugin, which is used by few users to set-up different domains for sites in the network. This is however useless, the WooCommerce Global Cart take care of that functionality through WordPress core functions and additional classes. The above plugin should be de-activated and uninstalled.
If the notice still persist, it must be defined on another place or by another plugin, doing a server files search for ‘COOKIE_DOMAIN’ should bring up the exact spots where this is being used.
Related Posts
By default, WooCommerce retains...
WooCommerce’s persistent cart feature...
Managing multiple WooCommerce shops within a WordPress Multisite environment can be challenging, especially when it comes to keeping product information consistent across all stores. The WooCommerce Product Synchronization feature in the WP Global Cart plugin addresses this challenge by enabling seamless synchronization of products across your network.
Name: woogc/sequential_order_number/format
Type: Filter
Arguments: (int) $order_number,...
Name: woogc/global_cart/sites
Type: Filter
Arguments: (array) $sites_ids
The...
Name: woogc/single_checkout/split_order/order_created
Type: Action
Arguments: $new_order
The `woogc/single_checkout/split_order/order_created` action...
The WordPress WooCommerce Global...
By default, on Product...
Name: woogc/ps/synchronize_product/child_product
Type: Filter
Arguments:
(object)$child_product
(array)$main_product_data
(int)$origin_product_blog_ID
This filter...