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

Browser Back / Search Query

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.

Hey,
if i use Browser Back from any Search Result List the"Loading..." overlay is showing and the search button is not showing, until i change the very first search query in dropdown.
Is there a way to fix that (that the rigt numers are displayes and Search Button visible)

E.G:
Make any search here: https://www.bergtour-online.de/bergtouren-suche/
On Result Page use Browser Back
On https://www.bergtour-online.de/bergtouren-suche/ the Overlay is showing..

Thx :)

Hello

Please paste your license key here - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134511.png

My test - https://c2n.me/4m8vQbT

thx & licence inserted :)

...how did you manage?! ;)

here on chrome, safari and edge (mobile & desktop) this result:

https://share.icloud.com/photos/01fkTd3J0BReg3gQfSOqZOGWg

on your side on all devices working as expected?

super strange...

best

 

 

 

I tested it on desktop and mobile(android). I'll do a test on apple a little later

hey did you find s.th., when we are testing like in my video above.. (Chrome Desktop & Safari Mobile)

On Edge Desktop its working like in your Video!

Hello

These problems are only on iOS

on my side also with windows 11 & chrome!

can do video later.

Ok! I got the same effect only when a third party ad script was triggered( covered the entire screen )

ok thanks! hope they can fix...

Hello

Of course, if the problem is in a conflict with third-party advertising scripts on our part, we won’t be able to do anything

hey, damn, all other plugins dont have any conflicts, really nothing you can do? :)

In this case, you should hire a developer to resolve this conflict.

thx, are you available for such stuff? maybe good addition to the plugin? :)

and it seems to work if i am logged in in WP.. ;/ maybe you have any idea, i will compensate for sure.. thx

found a solution, i reload the seach button div & delete the"loading.." overlay when pn_html_buffer ist there for >0,5 second (usually no loader on browser back..) but that in my functions.php
works but not sooo smart? :?

function handle_specific_divs_on_browser_back() {
if (is_page('bergtouren-suche')) { // Only on the page with the slug"bergtouren-suche"
?>
<script>
window.onpageshow = function(event) {
if (event.persisted) { // Only if the page is loaded from the cache
console.log("Browser Back detected. Handling specific DIVs...");

// Wait 1 second (if necessary to ensure all resources are loaded)
setTimeout(function() {
// 1. Remove the DIV with id="pn_html_buffer"
const bufferDiv = document.getElementById('pn_html_buffer');
if (bufferDiv) {
bufferDiv.remove();
console.log("DIV with id 'pn_html_buffer' has been removed.");
} else {
console.log("DIV with id 'pn_html_buffer' was not found.");
}

// 2. Reload <div class="mdf_shortcode_submit_button">
const url = window.location.href; // URL of the current page
fetch(url)
.then(response => response.text())
.then(html => {
const parser = new DOMParser();
const doc = parser.parseFromString(html, 'text/html');

// Find the new <div class="mdf_shortcode_submit_button"> in the loaded HTML
const submitButtonDiv = document.querySelector('.mdf_shortcode_submit_button');
const newSubmitButtonDiv = doc.querySelector('.mdf_shortcode_submit_button');

if (submitButtonDiv && newSubmitButtonDiv) {
submitButtonDiv.innerHTML = newSubmitButtonDiv.innerHTML;
console.log("DIV with class 'mdf_shortcode_submit_button' has been reloaded.");
} else {
console.error("DIV with class 'mdf_shortcode_submit_button' could not be loaded.");
}
})
.catch(err => console.error("Error while reloading the DIV 'mdf_shortcode_submit_button':", err));
}, 500); // 1-second delay
}
};
</script>
<?php
}
}
add_action('wp_footer', 'handle_specific_divs_on_browser_back');

Hello

Ok! Great!