Skip Navigation

[Resolved] Toolset Layouts disable pagination in Woocommerce categories using storefront

This support ticket is created 6 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 2 replies, has 2 voices.

Last updated by Nigel 6 years, 3 months ago.

Assisted by: Nigel.

Author
Posts
#1091110

I am trying to: use toolset with woocommerce & storefront

Link to a page where the issue can be seen:

I expected to see: normal behavior

Instead, I got: storefront doesn't display pagination anymore. Disabling layouts brings pagination back

#1091244

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Steven

I just checked and you are right.

And this happens without creating a custom archive for product categories, meaning you are using the default WooCommerce archive. Also any theme, not just Storefront.

I'm escalating this thread so that it can be debugged further, but in the meantime, if you are not using Layouts to customise any product archives (e.g. the shop page) then you can go to Toolset > WooCommerce Views and for the Product Archive Template File choose the WooCommerce Plugin default.

#1094699

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Steven

My colleague identified an issue in the archive template that we ship with the WooCommerce Views plugin that is responsible for this. (The original intention was to prevent duplicate pagination, where both pagination added by WooCommerce and pagination added to a Toolset custom archive were added to the page.)

You can make an edit to the file to fix this, but you may lose the changes with a plugin update, so copy the file plugins/woocommerce-views/templates/archive-product.php to a woocommerce folder in your child theme.

Then go to Toolset > WooCommerce Views and then for the Product Archive Template File choose the template from your child theme that you just copied.

Now edit that file. Locate this section (should be line 40-42):

if (!( function_exists( 'the_ddlayout' ) )) {
	do_action( 'woocommerce_after_shop_loop' );
}

Replace that with:

if ( defined( 'WPDDL_VERSION' ) && !is_ddlayout_assigned()) {
do_action( 'woocommerce_after_shop_loop' );
}

Please try that and let me know if you still have a problem.