Ciodensky Posted January 3, 2022 Share Posted January 3, 2022 (edited) Site URL: https://www.xystema.com/pricing Website password: 030774 I have confirmed that Grammarly extension/app causes "Unavailable" error of my variant products once I returned from Checkout page. The solution I found to avoid this is to disable the Grammarly extension or uninstall it from computer. However, this is beyond my control now. I am afraid that if my user has Grammarly, this error will appear. The solution I am looking at is to change the "Unavailable" with other text like "Error occured! Please reload your browser. I tried the below code but no avail. $(document).ready(function() { $(".product-price").html(function() { return $(this).html().replace("Unavailable", "Error occured! Please reload the browser."); }); }); I will appreciate any help on this. Many thanks. Edited January 4, 2022 by Ciodensky add website password Link to comment
Ciodensky Posted January 4, 2022 Author Share Posted January 4, 2022 (edited) Site URL: https://www.xystema.com/pricing Website password: 030774 Can anyone help me with the code on how trigger browser page refresh or reload when the "Unavailable" text in the product block appears after clicking the "Back" browser button. I will appreciate any help. Many thanks. Edited January 4, 2022 by Ciodensky added some gratification and corrected some grammar Link to comment
tuanphan Posted January 4, 2022 Share Posted January 4, 2022 I'm not familiar with JS code, can't help you with this Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Ciodensky Posted January 4, 2022 Author Share Posted January 4, 2022 2 minutes ago, tuanphan said: I'm not familiar with JS code, can't help you with this No worries. Thank you for the reply. Happy New Year by the way! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment