Home Forums WoodMart support forum Issue with number of products to display

Issue with number of products to display

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #346365

    Global Touch
    Participant

    Hello,

    I am facing a problem. When I go to one category loop page and change something, for example sorting and then select to display 36 products per page, it redirects me to shop page. It’s a little strange.

    Can you please make your own test in our eshop?
    Please help,
    Thanks in advance

    #346427

    Luke Nielsen
    Keymaster

    Hello,

    The redirect problem can be fixed by adding this PHP code to the functions.php file in your child theme.

    add_filter(
    	'woodmart_shop_page_link',
    	function( $link ) {
    		if ( isset( $_GET['swoof'] ) ) {
    			$link = add_query_arg( 'swoof', wc_clean( $_GET['swoof'] ), $link );
    		}
    
    		if ( isset( $_GET['product_cat'] ) ) {
    			$link = add_query_arg( 'product_cat', wc_clean( $_GET['product_cat'] ), $link );
    		}
    
    		return $link;
    	},
    	10
    );

    If you will have redirect issues, please don’t hesitate to reach out. We are always here to help you.

    Kind Regards

    #346613

    Global Touch
    Participant

    It doesn’t work. It makes the same redirection! Maybe a conflict with woof product filters?

    #346638

    Luke Nielsen
    Keymaster

    Hello,

    Please, provide login access for your site’s WordPress admin panel and also send us your FTP access to your server files so we can check what is wrong with your website. We will do our best to help you.

    Kind Regards

    • This reply was modified 3 years, 4 months ago by Luke Nielsen.
    #346648

    Global Touch
    Participant

    Ok, I will

    #346936

    Luke Nielsen
    Keymaster

    Hello,

    We have focused on finding the concern and came to the conclusion that you are using a plugin for brands that creates a custom archive page, therefore not only our filters but also from WooCommerce do not work with this plugin. You can make sure of that by checking how default WooCommerce filters work on a brand page with some default themes.

    If there’s anything else we can do, please get in touch.

    Kind Regards

    #347008

    Global Touch
    Participant

    I don’t know what plugin do you mean! I have created custom taxonomy for products like brands, with Custom Post Type UI plugin. Do you mean this?

    Also categories in filters are displayed with the WOOF – WooCommerce Products Filter plugin.

    Thanks in advance.

    #347399

    Luke Nielsen
    Keymaster

    Hello,

    Of course, I talked about the “Custom Post Type UI” plugin. Unfortunately, our filters don’t work with custom taxonomies.

    If you have any more questions or come across any other issue, let me know, I’ll be happy to help.

    Have a great day.

    Kind Regards

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