Viewing 2 posts - 1 through 2 (of 2 total)
  • #30217
    pidfloors
    Member
    Post count: 8

    Hello!

    I had a problem with 24/48/All results navigation before and i saw in one of your topics an answer how to resolve it and followed it. What i have now is this:

    <div class="woocommerce-count-wrap">
    	<p class="woocommerce-result-count">
    		<?php
    		$paged    = max( 1, $wp_query->get( 'paged' ) );
    		$per_page = $wp_query->get( 'posts_per_page' );
    		$total    = $wp_query->found_posts;
    		$first    = ( $per_page * $paged ) - $per_page + 1;
    		$last     = min( $total, $wp_query->get( 'posts_per_page' ) * $paged );
    		
    		if ( 1 == $total ) {
    			_e( 'Showing the single product', 'swiftframework' );
    		} elseif ( $total <= $per_page ) {
    			printf( __( 'Showing all %d products', 'swiftframework' ), $total );
    		} else {
    			printf( __( 'Showing %1$d–%2$d of %3$d products', 'swiftframework' ), $first, $last, $total );
    		}
    		?>
    	</p>
    	<p class="woocommerce-show-products">
    		<span><?php _e("View", "swiftframework"); ?> </span>
            <a class="show-products-link" href="?show_products=24">24</a>/<a class="show-products-link" href="?show_products=48">48</a>/<a  class="show-products-link" href="?show_products=<?php echo $total;?>">All</a>
    	</p>
    	</p>
    </div>

    What it does for me (i have close to 200 products) it does do the links to the 48 and All but it shows ALL AND I MEAN ALL products no matter if I click on 24 or 48 or All.

    Do you know how can I fix it?

    #30735
    Melanie – SUPPORT
    Member
    Post count: 11032

    Hi!

    This does not happen on our installations, so if you need help with a specific problem on your website, I would always need to see your site live please.
    Could you tell me your website URL please? You can do so by typing it into a reply.
    If you want to send a private reply that only you and the admins can see it, please scroll down and enable the checkbox to do so.

    Also, we might need to check the backend of your website, so to speed things up, could you let me know your login details please?

    Thanks and cheers!

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register