Forums Forums Search & Filter Pro Next page button error

Viewing 8 posts - 21 through 28 (of 28 total)
  • Anonymous
    #51858

    Got it, thank you.

    Ross Moderator
    #52156

    Hey again.

    Ok so I took a look – in this case it seems to be the issue was coming from the pagination function in your theme…

    This was found in raakbookoo\library\extensions\loop-pagination.php – there was a whole load of unusual things it seemed going on in there, but fortunately they added a filter for updating the pagination 🙂

    So, all you have to do now is add the following code to functions.php:

    function loop_pagination_args_sf($args)
    {
    	if(is_shop())
    	{
    		$big = 999999999; // need an unlikely integer
    		$args['base'] = str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) );
    	}
    	return $args;
    }
    
    add_filter("loop_pagination_args", 'loop_pagination_args_sf');

    This worked for me locally – however as you weren’t using a child theme I didn’t want to test the code directly on your site.

    Let me know

    Thanks

    Anonymous
    #52158
    This reply has been marked as private.
    Anonymous
    #52159

    And I noticed that if I choose 2 filters, pagination works well, but only for one of filters. If 3, then works well for 2 filters, and …

    Ross Moderator
    #52162

    The headers warning is because there is output in your functions.php..

    What I would suggest is to place the code directly above the line 1120:

    add_filter('woocommerce_registration_errors', 'registration_errors_validation', 10,3);

    Once you’ve done that let me know and i’ll take another look

    Anonymous
    #52169

    Hooray, now it works great!

    Thank you very much! =)

    Trevor
    #52170

    Can we mark this as resolved and close the thread?

    Anonymous
    #52177

    Hello Trevor,

    Yes of course.

    Thanks!

Viewing 8 posts - 21 through 28 (of 28 total)