Return custom product in ajax call loop
Yes, you can query products by their ids and display them as ajax response. You code just needs a little revision. Perhaps you could try something along these lines, public function display_search_result(){ $skus = urldecode($_POST[‘sku_universel’]); $skus = explode(‘,’,$sku); $product_ids = array(); // you can use native woocommerce function to get the product ids foreach($skus as … Read more