Search
Usage Archives - WP Global Cart
304
archive,tax-documentation_tag,term-usage,term-304,wp-theme-awake,wp-child-theme-awake-child,theme-awake,eltd-core-1.1,woocommerce-no-js,awake child-child-ver-1.0.0,awake-ver-1.8,eltd-smooth-scroll,eltd-smooth-page-transitions,eltd-mimic-ajax,eltd-grid-1200,eltd-blog-installed,eltd-default-style,eltd-fade-push-text-top,eltd-header-standard,eltd-sticky-header-on-scroll-down-up,eltd-default-mobile-header,eltd-sticky-up-mobile-header,eltd-menu-item-first-level-bg-color,eltd-dropdown-slide-from-top,eltd-,eltd-fullscreen-search eltd-search-fade,eltd-side-menu-slide-from-right,wpb-js-composer js-comp-ver-8.1,vc_responsive
 

Archive

Get the network Total Sales for a synchronized product

The WooCommerce Global Cart offers a powerful solution for businesses operating multiple online stores within a WordPress Multisite network. By synchronizing products across these shops, merchants can ensure consistency in product offerings while simplifying inventory management. However, one challenge that arises with this setup is the need to accurately track sales for synchronized products across the entire network. To address this challenge, developers can implement custom functions to retrieve essential data, such as the total number of network sales for...

View More

Redirect to origin shop on Order Received, when using Single Checkout with Split

When utilizing the Single Checkout option, all products within the global cart undergo processing within a designated shop. Conversely, when opting for the Split function, individual orders are generated within each of the shops that contributed products to the cart. Upon the completion of the checkout process, a page titled 'Order Received' is presented to the customer. To seamlessly redirect the customer to the 'Order Received' page hosted on the shop where the origin product was located, you can make use...

View More

Programmatically synchronize a product across the Network

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.

Replace the Global Cart Products with local store product, on SKU match

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.

Use WooCommerce shortcodes to Displaying Products across Shops

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.

Implement network-wide WooCommerce Tax settings

WooCommerce Tax area provides the necessary tools to create the required taxation for on-sale products. Setting up Taxes in WooCommerce is straightforward, through WooCommerce > Settings > Tax interface: Different tax classes and appropriate Rates, per specific Country, State, Zip, City etc area configurable: On check-out, the current shop tax set-up applies to all products in the shopping cart. The check-out location is settable through the plugin options, or this can be free to choose by the customer. I such case,...

View More

woogc/sync/bounce_sync

Deprecated notice: The recent tracking privacy cookie policy changes, the filter is deprecated. Instead, the synchronisation screen is used for all browsers to ensure compatibility. Name: woogc/sync/bounce_sync Type: Filter Arguments: $sites, $context The synchronization procedure ensures the cart maintains unitary across all shops in the network. The procedure triggers in the background or through a synchronization screen ( mainly for the Safari browser ). The filter instructs the code to use only the synchronization screen for all devices and browsers. add_filter('woogc/sync/bounce_sync', 'woogc_sync_bounce_sync'); ...

View More

Update cart-shipping template, when using “Calculate Shipping costs for each Shops” option

As default, when using Single Shop Check-out type, WooCommerce calculates the shipping costs globally for all products in the cart, independently of the origin of the item, to what shop it belongs in the network. The used shipping rules and rates are the one's set up on the shop being used for the check-out process. This is enough for most shop administrators, if providing a single package with all customer items. The new functionality controlled through the Calculate Shipping...

View More

How to create global WooCommerce Coupons

Mandatory for every shop, Coupons are a great way to offer discounts to attract new customers and loyalize existing ones. WooCommerce provides an easy way to create new coupons, through an intuitive interface available at the Marketing menu, on the admin dashboard.

When running WordPress MultiSite with many shops, maintaining the Coupons is tricky and time-consuming. They need updateds within each of the shops, that use a coupon.

Redirect all Carts to a specific Shop Cart

Each of the Network Shops run their own cart page. This can be changed so the cart link redirects the user to a specific Shop Cart in the network, which is usually the Check-out Shop, when using Single Site Check-out type. The feature can be achieved through a custom code. The WOOGC_REQUIRED_CART_URL value should be updated with the required shop cart URL: <?php define('WOOGC_REQUIRED_CART_URL', ...

View More

How Split Order works when using Single Checkout type

The Global Cart widget functionality provided by the plugin is maintained globally across all sites in the network and can hold any products. Within a shop, a customer can add the desired goods and continue to another site, while the cart still holds the previously added products. Eventually, everything will be checked out on a single process or separate, per plugin set-up. Sample Global Cart Widget with products from different shops.   The WordPress WooCommerce Global...

View More

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...

View More

woogc/network_orders/get_orders/mysql_query/WHERE

Name: woogc/network_orders/get_orders/mysql_query/WHERE Type: Filter Arguments: $mysql_query, $blog_id The filter can be used to modify the MySQL query used by the Network Orders interface to output the orders from all shops. The following code example shows only the orders for shop_manager roles, from shops where the user have access : add_filter ( 'woogc/network_orders/get_orders/mysql_query/WHERE', '_custom_network_orders_mysql_query_WHERE_2', 10, 2 ); function _custom_network_orders_mysql_query_WHERE_2 ( $mysql_query, $blog_id ) { ...

View More

woogc/disable_global_cart

Name: woogc/disable_global_cart Type: Filter Arguments: $is_disabled 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', 10, 2 ); function WooGC_Disable_GlobalCart ( $status, $_blog_id = '' ) { ...

View More

woogc/show_network_orders

Name: woogc/show_network_orders Type: Filter Arguments: $status The filter can be used to show the Network Orders interface to other shops in the MultiSite environment. The following code example, show the interface for shops ID's 2 and 3: add_filter('woogc/show_network_orders', 'WooGC_show_network_orders'); function WooGC_show_network_orders( $status ) { global $blog_id; ...

View More

wogc/admin/manage_shop_order_column_data

Name: wogc/admin/manage_shop_order_column_data Type: Action Arguments: $post, $column_name The filter can be used to render data for a custom created column on SuperAdmin Orders interface. The following example render html for column called Products add_action('wogc/admin/manage_shop_order_column_data', 'custom_wogc_admin_manage_shop_order_column_data', 10, 2); function custom_wogc_admin_manage_shop_order_column_data( $post, $column_name ) { if ( $column_name != 'products') ...

View More

wogc/admin/manage_shop_order_columns

Name: wogc/admin/manage_shop_order_columns Type: Filter Arguments: $columns The filter can be used to add new column on SuperAdmin Orders interface. To render code for a custom column see wogc/admin/manage_shop_order_column_data The following example add a new column called Products add_filter('wogc/admin/manage_shop_order_columns', 'custom_wogc_admin_manage_shop_order_columns'); function custom_wogc_admin_manage_shop_order_columns( $columns ) { $columns['products'] =...

View More

Choose from Checkout Type options – Single Checkout / Each Store (Split check-out)

When it comes to WodPress MultiSite environment, WooCommerce does not provide any options. Working with stand-alone WordPress instances, there is no features to interconnect the shops in the network, in any way. The WooCommerce Global Cart provides the missing features for the shops, the Global Check-out and Global Cart are two of the main plugin functions. By default, the WooCommerce checkout provides a smooth experience for your customers. This creates a great benefit for shop...

View More

woogc/get_checkout_url

Name: woogc/get_checkout_url Type: Filter Arguments: $checkout_url 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 ) { ...

View More