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

    Hi,
    I’m working on a site where we are are using WooCommerce as web shop and also as photo galleries on several pages. We are also using the AJAX Products Filter by BeRocket. On the main shop page the pagination is working but on the other pages where we are using shortcodes the pagination is not working at all. BeRocket said it’s a theme issue cause it’s just regular WooCommerce codes.

    Link is provided with a page where no pagination take place.

    #1136862

    Hey Technohead,

    Thank you for the inquiry.

    Where can we see a working version of the pagination? Please provide a direct link to the page. And please ask the plugin developer for additional help because we don’t provide support for third party plugins, but we’ll try to help as much as we can.

    Best regards,
    Ismael3

    #1136967

    Hi Ismael!

    The regular webshop works just fine with the BeRocket filter on and not using any WooCoomerce shortcode here. See link 1.
    I have disabled the BeRocket filter and Quickview plugin on the page were the pagination is not working on. I have also tried to disable all the custom CSS but the pagination is still missing. On this page we are using regular WooCommerce shortcodes. See link 2.

    So it’s just when using the WooCommerce shortcode the pagination disappears.

    Really appreciate any help here cause we are planning on adding several hundreds of products.
    Regards, Roger

    #1137351

    Hi,

    Thank you for the update.

    Are you using this shortcode?

    // https://docs.woocommerce.com/document/woocommerce-shortcodes/

    Did you ask the author if the plugin is compatible with Woocommerce shortcodes? This would be a theme issue if you’re using the product grid element.

    Please ask the plugin author how the plugin appends the pagination to the product template. It is probably using a hook that is not available in the product shortcodes.

    Best regards,
    Ismael

    #1137407

    Hi again Ismael!

    Yes the shortcode is taken from that very page you linked to. [products category=”gotland-kat” orderby=”date” order=”DESC” paginate=”true” limit=”16″ columns=”4″]
    This is put in a textblock. As stated before the plugin is not activated here for testing purposes. Are we doing something wrong?
    Regards Roger

    #1137770

    Hi,

    Thank you for the update.

    The default pagination is not displaying properly because the action or callback for it is disabled. You can add this code in the functions.php file to add it back. You will have to adjust the style of the pagination a bit.

    add_action('after_setup_theme', function() {
        add_action( 'woocommerce_after_shop_loop', 'woocommerce_pagination', 10 ); // add pagination back
    });
    

    Best regards,
    Ismael

    #1165506

    Hi again,
    Thank you for the code, it worked!
    Although I had to give up the plugin cause it could not handle two different classes of pagination. You can close this now. I’ll start a new topic on pagination with another issue :)
    Regards, Roger

    #1165778

    Hi Roger,

    Thanks for the update, I’ll close this thread for now then. Let’s continue in your other thread.

    Best regards,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Pagination not working with WooCommerce shortcodes’ is closed to new replies.