Archived topic
Product sorting showing twice
7 replies · Started by Fredrik on January 15, 2023
I'm using Beaver Builder, Beaver Themer, PowerPack (WooPack) and GeneratePress Pro.
On my archive pages there's two instances of the product sorting function generated from WooCommerce
On the archive page i'm using WooPack to display my own custom grid.
The product sorting is displayed from both GeneratePress and Woopack Grid.
Disabling product sorting in GeneratePress will disable both of them.
I have to use some ugly CSS to disable the themes output of the filtering, but doesn't feel like the right solution.
#wc-column-container .woocommerce-ordering {display:none;}
.fl-module-content .woocommerce-ordering {display: inline-block;}
Hi there,
Does it work if you uncheck Display product sorting in the customizer?
https://docs.generatepress.com/article/woocommerce-overview/#shop
No, as I mentioned, that disables both products sorting.
I've sent the same question to WooPack since I don't know where the issue is coming from, or if it is an issue.
But it seems both WooPack and GP hooks into the same standard Woo sorting, and GP customizer settings disables them both.
I added login details if you want to take a look.
I believe this is something WooPack's support team will have to help with.
GP's customizer option is working as it should.
I suspect that CSS is the solution.
So isn't the option in GP customizer just supposed to stop the output of the GP theme? Seems weird it also hides other plugins output as if it's a global control button.
The sorting option is a WooCommerce core feature - GP's option simply allows you to display or remove it.
Yes, the issue is that you disable the woocommerce function.
I got an answer from PowerPack team that GP disables a standard functionality, which their tool uses.
WooPack uses the same WooCommerce way to output the sorting dropdown and the same way is used widely in themes and other plugins. So when you disable it from the theme it also gets disabled from WooPack.
Wouldn't it make perfect sense if your theme only disables your output instead of other tools that use the product sorting function?
Anyhow, I solve this with CSS. But maybe it's should be considered to not conflict with other Woocommerce tools.
Wouldn’t it make perfect sense if your theme only disables your output instead of other tools that use the product sorting function?
The issue here is that there is no "your output" here - the output is coming from WooCommerce itself and not GP.
GP's customizer option simply lets you choose to output the WooCommerce feature or not.