• Resolved Jan_Siev

    (@jan_wenzel)


    Hi there,

    is there any possibility to load the search results on page without relaoding the whole website? The Website reloads when I enter the ZIP Code in the search box and jumps back to the top of the page.

    • This topic was modified 3 months, 2 weeks ago by Jan_Siev.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author umangmetatagg

    (@umangmetatagg)

    Hey @jan_wenzel

    Thank you for using our plugin.

    We plan to implement a solution for loading search results dynamically without requiring a page reload in a future release. This enhancement will provide a smoother and more seamless experience when using the Store Locator.

    In the meantime, you can add the following JavaScript snippet to the store locator page, which ensures users smoothly navigate to the map section after performing a search.

    document.addEventListener("DOMContentLoaded", function () {
    // Get the URL parameters
    const urlParams = new URLSearchParams(window.location.search);
    const userAddress = urlParams.get("userAddress");

    if (userAddress) {
    // Find the element with the ID or class matching the parameter
    const targetElement = document.querySelector('.csl-search-form');

    if (targetElement) {
    // Scroll to the target element
    targetElement.scrollIntoView({ behavior: "smooth" });
    }
    }
    });

    If you have any questions or further suggestions, please feel free to let us know.

    Thanks!

    Plugin Author umangmetatagg

    (@umangmetatagg)

    Hello @jan_wenzel

    We’ve just released version 1.4.9, which includes a patch for this fix. Please update the plugin and let us know if it resolves the issue or if you encounter any problems.

    Thanks!

    Plugin Author umangmetatagg

    (@umangmetatagg)

    Hello @jan_wenzel

    I’m closing this ticket for now. If you need any further assistance, please feel free to raise a new support ticket.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.