Switch currencies without page reload?
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 pleaseIf 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.
Quote from ClarkAG on November 16, 2021, 20:54Howdy!
Is there any way to switch the currency without reloading the page?
Here is a website I found that does this perfectly: https://www.westonstore.com/products/heated-socks
Howdy!
Is there any way to switch the currency without reloading the page?
Here is a website I found that does this perfectly: https://www.westonstore.com/products/heated-socks
Quote from Pablo Borysenco on November 17, 2021, 12:51Hello
Unfortunately the plugin does not have this feature.
Hello
Unfortunately the plugin does not have this feature.
Quote from ClarkAG on November 17, 2021, 22:23This is a very important feature! Can you add it as a feature request?
As it is now, my price shortcode and currency switcher are at the bottom of a long page, so when the currency is switched and the page reloads back to the top of the page. this is confusing for the user.
Can the page at least automatically scroll down to the currency switcher shortcode after reload?
This is a very important feature! Can you add it as a feature request?
As it is now, my price shortcode and currency switcher are at the bottom of a long page, so when the currency is switched and the page reloads back to the top of the page. this is confusing for the user.
Can the page at least automatically scroll down to the currency switcher shortcode after reload?
Quote from Pablo Borysenco on November 18, 2021, 12:58Hello
Can you add it as a feature request? - Unfortunately this is not possible
Can the page at least automatically scroll down to the currency switcher shortcode after reload? - In this case, you need customization of the code.
an examle add code to footer:
<?php if (isset($_GET['currency'])): ?>
<script>
jQuery(function ($) {
setTimeout(function () {
$('html, body').animate({
scrollTop: $(".woocs,.selectron23").offset().top - 100
}, 777);
}, 333);
});
</script><?php endif; ?>
Hello
Can you add it as a feature request? - Unfortunately this is not possible
Can the page at least automatically scroll down to the currency switcher shortcode after reload? - In this case, you need customization of the code.
an examle add code to footer:
<?php if (isset($_GET['currency'])): ?>
<script>
jQuery(function ($) {
setTimeout(function () {
$('html, body').animate({
scrollTop: $(".woocs,.selectron23").offset().top - 100
}, 777);
}, 333);
});
</script>
<?php endif; ?>
Quote from ClarkAG on November 18, 2021, 20:48I don't know much about code, but here is a website that switched the currency without page reload, so I know it is possible :)
https://www.westonstore.com/products/heated-socksHopefully this can be added in the future. It will make the user experience much better.
Thank you for the script. I added it to my footer and it works, but it also causes the page to scroll immediately when loaded. Can this be fixed?
I don't know much about code, but here is a website that switched the currency without page reload, so I know it is possible :)
https://www.westonstore.com/products/heated-socks
Hopefully this can be added in the future. It will make the user experience much better.
Thank you for the script. I added it to my footer and it works, but it also causes the page to scroll immediately when loaded. Can this be fixed?
Quote from Pablo Borysenco on November 19, 2021, 12:52Hello
that switched the currency without page reload, so I know it is possible :) - It is not that simple. There are thousands of plugins that change prices (discounts, options, subscriptions, special formulas, etc.) that will not work in ajax.My plugin will redraw prices and it will be wrong. Yes, of course this is possible when the entire site (all code) is made by one command or for custom prices that are not affected by anything except my plugin
This is the scroll delay time in milliseconds - https://c2n.me/4e3d9dp.png
Hello
that switched the currency without page reload, so I know it is possible :) - It is not that simple. There are thousands of plugins that change prices (discounts, options, subscriptions, special formulas, etc.) that will not work in ajax.My plugin will redraw prices and it will be wrong. Yes, of course this is possible when the entire site (all code) is made by one command or for custom prices that are not affected by anything except my plugin
This is the scroll delay time in milliseconds - https://c2n.me/4e3d9dp.png
Quote from ClarkAG on November 19, 2021, 21:28Thank you for the explanation. The example site appears to be a Shopify store, so they use only Shopify code. I understand.
For the auto-scroll, the pages were auto-scrolling when landing on them for the first time. Can the script auto-scroll only when the price is changed?
Thank you so much!
Thank you for the explanation. The example site appears to be a Shopify store, so they use only Shopify code. I understand.
For the auto-scroll, the pages were auto-scrolling when landing on them for the first time. Can the script auto-scroll only when the price is changed?
Thank you so much!
Quote from Pablo Borysenco on November 22, 2021, 13:20hello
Scrolling is triggered only when there is a request ?currency=XXX in the URL
My plugin adds this when you use the switcher
But it remains in the URL, and if you copy this link the scroll will work all the time
hello
Scrolling is triggered only when there is a request ?currency=XXX in the URL
My plugin adds this when you use the switcher
But it remains in the URL, and if you copy this link the scroll will work all the time
Quote from ClarkAG on November 22, 2021, 20:11Ah I understand. Thanks for the explanation!
1.
The script works fine in Firefox, but after removing the /?currency=XXX the browser still scrolls down. Even when pasting the original URL in a new window it still scrolls down.Must be a cache issue. The problem is that if the user uses their Back button after leaving the page, the page will scroll down immediately. This will be a terrible user experience.
2
The script doesn't work at all in Chrome.This script seems too unreliable for me to use. Thanks for your efforts!
Ah I understand. Thanks for the explanation!
1.
The script works fine in Firefox, but after removing the /?currency=XXX the browser still scrolls down. Even when pasting the original URL in a new window it still scrolls down.
Must be a cache issue. The problem is that if the user uses their Back button after leaving the page, the page will scroll down immediately. This will be a terrible user experience.
2
The script doesn't work at all in Chrome.
This script seems too unreliable for me to use. Thanks for your efforts!
Quote from Pablo Borysenco on November 23, 2021, 13:17Hello
Yes it really looks like a conflict with the cache
Unfortunately, I have no other solution to this problem.
Hello
Yes it really looks like a conflict with the cache
Unfortunately, I have no other solution to this problem.