Ross
Forum Replies Created
-
Ross Moderator in reply to:
How to use custom form to update with AJAX multi products search_filter(Private) January 12, 2021 at 6:37 pm #272590This reply has been marked as private.Ross Moderator in reply to:
Performance Issues with S&F Pro and WPML(Private) January 12, 2021 at 6:31 pm #272588This reply has been marked as private.Ross Moderator in reply to:
S&F looking for a page with %tax% in the slug(Private) January 12, 2021 at 6:25 pm #272584This reply has been marked as private.Ross Moderator in reply to:
Infinite scroll issue(Private) January 12, 2021 at 5:59 pm #272581Hey Ben
Glad you found that issue…
I suspect that the plugin is doing something with global window events and removing our listener somehow.
I’m not 100% on that but it would be my guess.
I also usually see something like this when two copies of jquery are loaded on a site (our events not working).
If you want to get in touch with them to see if they are interested in resolving this – if so, I’d be happy to jump in on the conversation to give my perspective in hope we can make some progress.
That being said, something like this is never usually quickly resolved.
Best
Ross Moderator in reply to:
Only Some Posts Display / Only Some Filters Work(Private) January 12, 2021 at 5:50 pm #272577@nadlanco – thanks for the suggestion, you might be on to something – however in this case we are testing only with post meta and getting issues…
@gestrada – I took a look, but I can see nothing wrong with the setup. You are using a translation plugin so that could be affecting queries as mentioned above, but my guess for now is there is a conflict somehwere, either with the translation plugin or with another.
For now, I would like to get this site on a staging / development environment, so we can disable things until we find the cause of the issue.
Would you be able to do that?
Thanks
Ross Moderator in reply to:
Php 7.4 notices(Private) January 12, 2021 at 5:23 pm #272565Hi Charlie
Thanks for flagging.
Can you confirm, is the issue only coming from line
428
, or do you get multiple entries with different line numbers? – I would be expecting the latter.Thanks
Ross Moderator in reply to:
Infinite scroll issue(Private) January 12, 2021 at 5:19 pm #272563This reply has been marked as private.Ross Moderator in reply to:
Infinite scroll issue(Private) January 12, 2021 at 5:02 pm #272558Hi Rachel
Right now our javascript api is a bit limited – we’ll be rewriting this in version 3, but for now you can do it like this:
(function ($) { "use strict"; let searchForm; $(document).on("sf:init", ".searchandfilter", function(e, data){ // copy to window so we can access it anywhere searchForm = data.object; console.log("S&F init", searchForm); }); $( 'a' ).on( 'click', function() { searchForm.loadMoreResults(); } ); })(jQuery);
To break it down, the first event
sf:init
is fired for each search form initialised after page load.We assume in this example there is only one, and we copy that to a variable
searchForm
.Then, on the
click
handler, we trigger aloadMoreResults();
– I’ve added the click event to anya
– so you’ll want to change that to your button class / ID I guess…Best
Ross Moderator in reply to:
Trouble With Results Showing Up(Private) January 12, 2021 at 3:44 pm #272532This reply has been marked as private.Ross Moderator in reply to:
Category archive dynamic filter(Private) January 12, 2021 at 3:24 pm #272521This reply has been marked as private. -
AuthorPosts