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!