-
AuthorPosts
-
September 7, 2019 at 11:21 pm #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.
September 11, 2019 at 3:15 am #1136862Hey 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,
Ismael3September 11, 2019 at 10:28 am #1136967Hi 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, RogerSeptember 12, 2019 at 4:41 am #1137351Hi,
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,
IsmaelSeptember 12, 2019 at 8:22 am #1137407Hi 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 RogerSeptember 13, 2019 at 5:20 am #1137770Hi,
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,
IsmaelDecember 13, 2019 at 1:04 pm #1165506Hi 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, RogerDecember 14, 2019 at 7:01 am #1165778 -
AuthorPosts
- The topic ‘Pagination not working with WooCommerce shortcodes’ is closed to new replies.