Ajax functions for pagination and search results on Buy page