Hi there,
the problem is that when the ajax call is performed, our class YITH_Woocompare_Frontend is not loaded. so the shortcode can’t be rendered properly.
Before to include that class we make some check.
public function is_frontend() {
$is_ajax = ( defined( 'DOING_AJAX' ) && DOING_AJAX );
$context_check = isset( $_REQUEST['context'] ) && $_REQUEST['context'] == 'frontend';
$actions_to_check = apply_filters( 'yith_woocompare_actions_to_check_frontend', array( 'woof_draw_products' ) );
$action_check = isset( $_REQUEST['action'] ) && in_array( $_REQUEST['action'], $actions_to_check );
return (bool) ( ! is_admin() || ( $is_ajax && ( $context_check || $action_check ) ) );
}
You should contact plugin developers and say them to use the hook ‘yith_woocompare_actions_to_check_frontend‘ to include their ajax action to the ones that our plugin check.
We remain at your disposal.
-
This reply was modified 3 years, 10 months ago by YITHEMES.