Check WPGlobalCart for WordPress MultiSite

Search
TOP

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/origin_product/meta_data

Name: woogc/ps/synchronize_product/origin_product/meta_data Type: Filter Arguments: $args Filter being used to modify the product synchronization data before it is sent from the origin shop to the destination shop. The filter is applied to the $args array immediately before the synchronization request is made. The $args array contains the product object, product metadata, product type, attributes, images, synchronization arguments, origin shop ID, and origin product ID. The product_meta property can be modified to add, change, or remove custom product metadata that will be available during the...

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