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

WOOCS ajax call

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.

Hello,

Much like this topic:
https://pluginus.net/support/topic/how-to-avoid-ajax-call-in-case-of-server-cache-enabled-the-main-currency-is-set/

I have an ajax call on category and product pages that loads in the currency changer:

https://paste.pics/b7ff5534c2550febb6c8996e05b362d2

I'd like this call to stop. I have a base currency of € and a home currency of € - unless the customer selects something else, I don't want or need a ajax refresh. I have disabled the cache support but still the selector seems to require an ajax load. The underlying problem for me is that our speed optimization / litespeed configuration stops the currency selector from loading in, resulting in a hang. We dont want to break our optimization / pagespeed on waiting for the currency selector.

So, in short, can the ajax check get disabled?

Cheers

 

 

Hello

Please  drop  me  exact  link to  the  issue

https://c2n.me/4h3GnhF.jpg - This has nothing to do with currency checking and ajax requests. this is switcher loading(smart designer)

OK good to hear.

The page in question is (example): https://micronordic.com/dk/product/panasonic-toughbook-fz-g2/

So the switcher load, can it be prevented / cached ? Sometimes it fails to complete the load, and just spins. It is a caching issue, but we are looking for simplifying the load, maybe defer the load until user interaction or similar.

What can we do?

Hello

The switcher is only rendered after the page is fully loaded. That is, if your page loads faster, the switcher will appear faster.

There are no ajax requests here. Just a script waiting for the page to load to check it and render the switcher

To hide animation  you can add  CSS:

body .woocs-lds-ellipsis{
display: none !important;
}

Thanks for the answer!

Is there a way to force load first and not last? We seem to have problem with page load, so that it seems that switcher hangs, while waiting for something else.

Until we fix that, could we force switcher to load in first?

Cheers

Unfortunately no, that's the whole point. The script waits for the entire page to load to find and draw all swichers

while waiting for something else. - It could be JS errors on your site

As a temporary solution, you can use a different type of switcher(don't use a smart designer)

 

Thanks for the answer.

Do you mean another configuration within your plugin or do you mean another plugin / solution?

The designer screen for switcher in WOOCS does not seem to offer another type of switcher.

Hello

Ok!  What are you using to display the switcher on the product page?

Shortcode, [woocs sd=1]

Graet!  So  please  try:   [woocs ]

and  choose any type of switcher - https://share.pluginus.net/image/i20221111105617.png