PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Scrolling Issue with Filter Results

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hello,

After applying the filter on my website and scrolling, the results don't automatically return to the desired position, requiring manual scrolling. I'm using the HUSKY plugin for WooCommerce filters. I'm looking for a solution to make the results reappear in the desired position without the need for manual scrolling.

Thank you for your assistance.

Best regards,

Alessandro

Hello Alessandro

Please  read  this - https://products-filter.com/auto-scroll-to-element-after-ajax-is-done  AND  https://products-filter.com/auto-scroll-to-products-after-their-filtering-in-redirect-mode

Thank you for your response. Could you please check the first link? It leads to a non-existent page with a 404 error. Here is the broken link: https://products-filter.com/auto-scroll-to-element-after-ajax-is-done. Thanks again.

Hello

Please  try this - https://products-filter.com/auto-scroll-to-element-after-ajax-is-done

I've tried both of the recommended solutions, but I haven't been able to make the page scroll after using the filter.

However, I'd like to try this solution:
https://products-filter.com/auto-scroll-to-products-after-their-filtering-in-redirect-mode

I've added a small `if` statement to check if the conditions are met:

```php
function add_custom_code_to_page_load() {
if (isset($_GET["swoof"])) {
echo 'The condition is true.';

echo '<script>
jQuery(window).on("load", function() {
$(".woof").animate({
scrollTop: $(".woof_products_top_panel_content").offset().top - 100
}, 777);
});
</script>';
}
else {
echo 'The condition is false.';
}
}
add_action('wp_head', 'add_custom_code_to_page_load');
```
https://bresciaeventi.com/home-eventi/

It seems that the code is not detecting the URL with `if (isset($_GET["swoof"]))`.

As a precaution, I have temporarily disabled ACF fields from Husky and I am only using the default ones, which consist of a text field and a category field. Additionally, I want to inform you that I haven't applied any plugins for managing permalinks.

Thank you for your help.

Hello

Give me a link to the page where you use my plugin

https://bresciaeventi.com/home-eventi/  -  my plugin is not on this page

Hello, I've reactivated the script on the same page. Thank you.
https://bresciaeventi.com/home-eventi/

Hello

Please  change  this  code - https://share.pluginus.net/image/i20231106133024.png - .woocommerce.columns-3