By default, the WooCommerce checkout is designed to be as smooth as possible for your customers, this create a great benefit for shop owners as it increase the conversions. WooGlobalCart use the existing appearance and workflow to add it's code for checkout processing, so the user experience will not receive any negative impact whatsoever.
The WordPress WooCommerce Global Cart include the global shopping cart functionality which allows a customer to add products from different shops...View More
The filter is being used to change the $checkout_url for specific shops. As default this is being controlled through admin settings but can be adjusted to particular shops if need.
The following code change the checkout url to shop default when blog_id is 4:
add_filter( 'woogc/get_checkout_url', 'WooGC_get_checkout_url');
function WooGC_get_checkout_url ( $checkout_url )
The filter is being used to disable the Global Cart functionality. The Global Cart works as a unique cart for all shops in the MultiSite Network, a product pushed to the cart will be show on all other shops too.
add_filter( 'woogc/disable_global_cart', 'WooGC_Disable_GlobalCart');
function WooGC_Disable_GlobalCart ( $status )
The filter is being used to disable Single Sign-On functionality. Single Sign-On (SSO) is a property of login on all sites in a MultiSite environment, using a single/unique login procedure. This works independently if other sites use different domains, subdomains or subdirectories structure.
add_filter( 'woogc/disable_sso', 'WooGC_Disable_SSO');
function WooGC_Disable_SSO ( $status )
Using the WooCommerce Global Cart all shops in the network will share the same cart, products from different sites can be added and checked-out in a single process. To make cart content more descriptive and clearer to the customers, a shop name can be append to each product title, to indicate the location where the product come from. Also other necessarily information's can append if apply.
The following bit of code append the origin Shop name, to each product title...
As default the links within cart should reflect the original shop where they pushed to the cart. In some cases a custom theme is not using the recommended WooCommerce template implementation which conclude to wrong url. Fortunate this is a small update, explained in the following lines.
Many themes use something like this to output the cart:
As default the orders of a customer should be available and visible on front side, within My Account at Orders section. It happens for certain orders to be ignored since the theme is not aware of orders being available across whole network. The default template file is located at woocommerce/myaccount/orders.php within your theme. If the file does not exist we recommend to copy over from woocommerce plugin.
The template file contain the following:
Once purchased the plugin can be downloaded through My Account at Downloads section.
The package can be installed on a WordPress instance through internal plugin upload functionality. At Superadmin Network Dashboard interface, go to Plugins > Add New
Chose Upload Plugin and Browse to location where the plugin archive was previously saved.
Click Install and Network Activate. The plugin is required to be activated through Superadmin dashboard to be available to all sites in the network.
Important ! At this point, depending on...
The plugin does not require any special server functionality. It require a WordPress instance with MultiSite environment activated. It can run either with Subdomain active or Subdirectory structure. Or it can be used with different domains (on any of above structure), see more details upon Set-up different domains for shops
WooCommerce plugin should be deployed and active on at least 1 site. There is no requirement upon WooCommerce activation on all blogs, this can run only for some of the sites.