Ross

Forum Replies Created

Viewing 10 posts - 181 through 190 (of 10,351 total)
  • Ross Moderator in reply to:
    How to use custom form to update with AJAX multi products search_filter
    #272590
    This reply has been marked as private.
    Ross Moderator in reply to:
    Performance Issues with S&F Pro and WPML
    #272588
    This reply has been marked as private.
    Ross Moderator in reply to:
    S&F looking for a page with %tax% in the slug
    #272584
    This reply has been marked as private.
    Ross Moderator in reply to:
    Infinite scroll issue
    #272581

    Hey 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
    #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
    #272565

    Hi 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
    #272563
    This reply has been marked as private.
    Ross Moderator in reply to:
    Infinite scroll issue
    #272558

    Hi 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 a loadMoreResults(); – I’ve added the click event to any a – 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
    #272532
    This reply has been marked as private.
    Ross Moderator in reply to:
    Category archive dynamic filter
    #272521
    This reply has been marked as private.
Viewing 10 posts - 181 through 190 (of 10,351 total)