Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Integration with Fluxstore app technical question › Reply To: Integration with Fluxstore app technical question
Hi,
I recommend getting that information via the WooCommerce API functions instead. The plugin returns the post type objects as results, as requested from wordpress, and some additional data is added to the $post->asp_data variable. However that may not be set for API searches like this, I need to double check.
Try changing the $defaults variable in the above code to:
$defaults = $args = array(
's' => '',
'_ajax_search' => true
);
Then in the results objects, the $post->content or the $post->asp_data->content should have the same exact output of the title and content fields as in the site ajax search.
I am not a 100% sure, you may have to test this to be sure.