WP Global Cart
> Send email notification to Shop Owner, if a product was checked-out on a different site
Send email notification to Shop Owner, if a product was checked-out on a different site
When using Single Site Check-out type, the Global Cart is being processed at a specified shop in the network or one at the customer preference. All Products will be included in a single order created on the site where the check-out occurs.
On shop Networks, where the owner chose to use Shop Managers to allow individual sites to be run by individual users, when a new Order is created on the Check-out Shop, a notification e-mail might be required to be sent to the shop where the product originated. A custom code can be used to achieve this functionality.
The following code should be placed in a file e.g. woo-gc-custom.php inside you /wp-content/mu-plugins folder. If the folder does not exist on your WordPress, you should create it manually.
add_action( 'woocommerce_checkout_update_order_meta', 'woogc_woocommerce_checkout_update_order_meta' );
function woogc_woocommerce_checkout_update_order_meta ( $order_id )
$subject = 'New Order';
$order = wc_get_order( $order_id );
foreach( $order->get_items() as $key => $order_item )
switch_to_blog( $order_item->get_meta('blog_id') );
$product_name = $order_item->get_name();
$product_id = $order_item->get_product_id();
$product_variation_id = $order_item->get_variation_id();
$message = "A new order has received which include a product from your shop: \n" . $product_name . " " . get_permalink($product_id);
$to = get_option('admin_email');
wp_mail( $to, $subject, $message );
Arguments: $status, $args
The capability to Split...
Splitting Orders, is a...
The Synchronization procedure is...
When running multiple Shops, a WordPress MultiSite environment is the optimal way to go. That provides a lot of interconnectivity possibilities, at an astonishing speed.
Our WooCommerce Global Cart plugin implements key features to make everything a robust, fast render and flexible marketplace.
The WooCommerce Product Synchronisation is a new powerful functionality recently introduced. This is designed to help with product synchronisation between multiple Shops in the network.
This newly implemented functionality helps with displaying WooCommerce Products across shops, in the network, under your WordPress MultiSite environment. Promote specific products, types of merchandise, category of goods, so boosting overall network sales. The new function is available as a Woocommerce Product Shortcode and is easy to implement. Any section of a site can include the shortcode to output the required products. The woocommerce shortcode is usable within the default WordPress editor ( classic ) or any advanced layout composer like Elementor, Divi, Visual Builder etc.
WooCommerce Tax area provides...
Arguments: $force_validation, $values
Incredibly flexible, the WooCommerce...
On the Synchronization screen...