Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › multisite woocommerce question re double-enabling pluginplugin › Reply To: multisite woocommerce question re double-enabling pluginplugin
Hi Elaine,
Well, the best option is to have WooCommerce on both installations so that the WooCommerce API is available, but I think you can try to get by it via a custom code. Although I am not sure if that is going to work at all, because if WooCoomerce is not active the product names/links/descriptions/attributes may not be possible to fetch.
Try adding this code to the functions.php file in your theme/child theme directory – make sure to have a full server back-up first for safety. For more details you can check the safe coding guidelines.
add_filter( 'asp_query_args', 'asp_add_woo_post_type', 10, 1 );
function asp_add_woo_post_type($args) {
$args['post_type'] = array_unique(array_merge($args['post_type'], array('product')));
return $args;
}