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
Name: woogc/ps/interfaces/synchronize_to_sites
Type: Filter
Arguments: $sites
The filter...
When utilizing the Single...
WPGlobalCart is a powerful WooCommerce plugin designed to streamline e-commerce operations within a WordPress MultiSite network. It offers a range of tools and features that simplify product management, making it an essential tool for businesses with multiple online stores.
Product Synchronization Made Easy
One of the standout features of the WPGlobalCart plugin is its user-friendly and efficient approach to product synchronization. Managing a diverse range of products across multiple websites within a WordPress MultiSite network can be a complex and time-consuming task. However, WPGlobalCart streamlines this process, offering a set of tools and features that make product synchronization a breeze.
Starting version 3.8.5 WP Global Cart received a new functionality called “Replace the Cart Products with local version”.
The “Replace the Cart Products with local version” feature enhances the shopping experience for customers who are using the WP Global Cart plugin in a WordPress MultiSite environment. This feature specifically addresses situations where a product in the shopping cart is available in the current store.
Name: woogc/ps/synchronize_product/ignore_meta_key
Type: Filter
Arguments: $IgnoreMeta, $prop_title,...
Name: woogc/checkout/single/split/trigger_email
Type: Filter
Arguments: $status, $args
By default,...
The capability to Split...
Splitting Orders, is a...
The Synchronization procedure is...