Tagged: ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #172719

    If I try to change the number of items to display per page on the last shop page I get a 404 error. Seems to be some problems when it’s not enough items left, or rather some problems when the URL (eg page 6) doesn’t exists anymore. Any suggestions?

    #172840

    Hey emilottersten!

    The trick to is to add or remove a product to reset the pagination. Please try to flush the permalink settings.

    Cheers!
    Ismael

    #172904

    Well, not quite working. In my case I have 26 products at the moment, shown as 12 products per page (I know, on page 3 there will only be 2 products). If I’m at page 2 and choose to display 36 products per page, then page 2 won’t really exist anymore and then I get the 404 error. I know that there isn’t that many products, but the customers don’t.

    Here’s my developing site: http://wp.ugglaihatt.se/butik

    Thanks!

    #172913

    Hi!

    We’ll fix this in the next version. If you need a quick fix open up replete\config-woocommerce\config.php and replace

    
    
    //helper function to build the query strings for the catalog ordering menu
    if(!function_exists('avia_woo_build_query_string'))
    {
    	function avia_woo_build_query_string($params = array(), $overwrite_key, $overwrite_value)
    	{
    		$params[$overwrite_key] = $overwrite_value;
    		return "?". http_build_query($params);
    	}
    }
    

    with

    
    if(!function_exists('avia_woo_build_query_string'))
    {
    	function avia_woo_build_query_string($params = array(), $overwrite_key, $overwrite_value)
    	{
    		$params[$overwrite_key] = $overwrite_value;
    		$paged = (array_key_exists('product_count', $params)) ? 'paged=1&' : '';
    		return "?" . $paged . http_build_query($params);
    	}
    }
    

    Cheers!
    Peter

    #172923

    Perfect! Thanks a lot!

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘404 in last shop page’ is closed to new replies.