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

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 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.

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

Hello

Unfortunately the plugin does not have this feature.

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?

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; ?>

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?

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

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!

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

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!

 

Hello

Yes it really looks like a conflict with the cache

Unfortunately, I have no other solution to this problem.