• Resolved songbirdwebdev

    (@songbirdwebdev)


    I was wondering if you could give me some pointers on what needs to be done to get the product pagination working. I’ve set the plugin for 9 products per page and I see the pagination controls, but the links are not working to load new products.

    Also, do the single products always need to open up on the origin page of the shortcode? For instance, I have a shortcode on my home page and would like the product links to seemingly lead off of the home page. Is this possible, or do the single products need to open up there?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Songbird,

    For the pagination: can you send us a link to the page where you’re encountering the issue?

    For the product links: whatever page that has the product shortcode on is the page where the products will appear.

    Thread Starter songbirdwebdev

    (@songbirdwebdev)

    The pagination is working on my internal pages:

    https://ridersportithaca.immllcdev.com/motorcycles/off-road/

    But not on my home page:

    https://ridersportithaca.immllcdev.com/

    Hi Song,

    The pagination is working on your homepage. It’s just that, because the href value for that link is “#”, it also scrolls to the top of the page. If you scroll back down, you’ll see that it did switch pages. The catalog on your inner page is much closer to the top of the page, so you don’t really notice when the same thing happens. If you wanted to stop this behaviour, you’d probably have to add in a bit of JavaScript to stop the default behaviour of that link click. Maybe something like the following, but I’m not certain:

    $('a.next-page').click(function(e) {
        e.preventDefault();
    });
    
    $('a.last-page').click(function(e) {
        e.preventDefault();
    });
    
    $('a.prev-page').click(function(e) {
        e.preventDefault();
    });
    
    $('a.first-page').click(function(e) {
        e.preventDefault();
    });
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Product Pagination not working’ is closed to new replies.