Check WPGlobalCart for WordPress MultiSite

Search
TOP

Daily Currency Price updates for the Synchronized Products

When using WP Global Cart to synchronize products between WooCommerce shops that use different currencies, the same product may need to have a different price on each shop. For example, a product may have an original price of €100 EUR on the main shop, while another synchronized shop uses USD. The product on the second shop should have its price automatically converted to the local currency. The Daily Currency Price Synchronization code provides a simple way to keep these prices updated...

View More

Currency Conversion Using 3rd Exchange Rates

When using WooCommerce shops with different currencies, product prices often need to be converted from the currency of the original product to the currency used by the destination shop. The WOOGC_Currency_Converter class included with WP Global Cart provides a simple way to perform these conversions without requiring an additional currency conversion plugin. The class uses the European Central Bank (ECB) reference exchange rates as its source. ECB rates are published against the Euro, allowing the class to convert between any...

View More

woogc/ps/synchronize_product/child_product

Name: woogc/ps/synchronize_product/child_product Type: Filter Arguments: (object) $child_product (array) $main_product_data (int) $origin_product_blog_ID The woogc/ps/synchronize_product/child_product filter allows developers to modify the child product object immediately before it is returned to the WooCommerce Global Cart product synchronization process and saved on the destination shop. This provides an opportunity to customize the synchronized product after the child product has been created or updated, but before the synchronization process completes. The filter can be used to change standard WooCommerce product properties, add or modify custom metadata, synchronize additional product information, or implement...

View More

woogc/ps/synchronize_product/ignore_meta_key

Name: woogc/ps/synchronize_product/ignore_meta_key Type: Filter Arguments: $ignore, $prop_title, $value, $child_product, $main_product_data, $origin_product_blog_ID Filter being used to exclude specific properties, meta keys, or core post fields from being applied to a child product during the product synchronization process. By default, the synchronization routine applies every property and meta key found on the remote (main) product object onto the local child product. To prevent one or more of these fields from being overwritten on the child — for example, to preserve a locally customized SEO description,...

View More

woogc/sync/on_post_vars

Name: woogc/sync/on_post_vars Type: Filter Arguments: $PostVars Filter being used to acknowledge the plugin engine to proceed with synchronization, usually following a custom AJAX call which is not being recognized as a WooCommerce default. (e.g. wc-ajax=add_to_cart,  wc-ajax=get_refreshed_fragments) Certain plugins and themes use their own methods to handle the cart operations like add, remove.  To create a compatibility between such code and the WooCommerce Global Cart plugin, at least a POST parameter must be registered through the 'woogc/sync/on_post_vars' filter, recommended to be a unique field. The following sample code,...

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. add_filter( 'woogc/disable_global_cart', 'WooGC_Disable_GlobalCart', 10, 2 ); function WooGC_Disable_GlobalCart ( $status, $_blog_id = '' ) { return TRUE; ...

View More