Default Price and Price after currency switcher not working
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 Snehal Jedhe on October 28, 2026, 09:55Hello,
I am using the WPCS plugin along with TablePress to display TLD prices. There are 650+ TLDs per tier(Tier 1, 2, 3, and Elite plan). I am importing sheets of each into TablePress, in which I have used the WPCS shortcode for the prices. I am using the WP Rocket plugin. The issue I am facing is that when I first load the page, all the prices are displayed correctly in INR, which is expected, as by default, I have set the price in INR. When I switch the currency to USD, price of some TLDs are displayed in USD but remain in INR, or vice versa. I have increased max_input_vars to 50000. I have cleared all cache. I have kept the currency storage setting as a cookie. Also, the setting of "I am using cache plugin setting" as YES. I have tried adding the prices page to Never Cache URLs in WP Rocket. After trying all of these, I am still facing the issue. Can you please let me know the issue and the correct, working solution to resolve it? It is affecting my sales. Please note that all the plugins are up to date. So please give me the solution. If you need anything else, let me know.
Regards,
Hello,
I am using the WPCS plugin along with TablePress to display TLD prices. There are 650+ TLDs per tier(Tier 1, 2, 3, and Elite plan). I am importing sheets of each into TablePress, in which I have used the WPCS shortcode for the prices. I am using the WP Rocket plugin. The issue I am facing is that when I first load the page, all the prices are displayed correctly in INR, which is expected, as by default, I have set the price in INR. When I switch the currency to USD, price of some TLDs are displayed in USD but remain in INR, or vice versa. I have increased max_input_vars to 50000. I have cleared all cache. I have kept the currency storage setting as a cookie. Also, the setting of"I am using cache plugin setting" as YES. I have tried adding the prices page to Never Cache URLs in WP Rocket. After trying all of these, I am still facing the issue. Can you please let me know the issue and the correct, working solution to resolve it? It is affecting my sales. Please note that all the plugins are up to date. So please give me the solution. If you need anything else, let me know.
Regards,
Quote from Alex Dev on October 29, 2026, 22:41Hello Snehal
Thank you for the detailed description, it made the cause easy to find.
This is an unusual case, we have not seen a page with so many prices before. When the option "I am using cache plugin on my site" is enabled, the plugin collects all prices on the page and asks the server to redraw them in the selected currency with one request. For safety the server processes at most 500 prices per request. Your page has several thousand prices (650+ TLDs in each of the 4 tiers), so only the first 500 are redrawn and the rest stay in the previous currency. That is why some prices switch to USD and some stay in INR. It also explains why max_input_vars, the cache exclusion and the storage setting did not change anything.
Let's try one experiment: the prices can be sent to the server in portions of 500. Please make a backup copy of the file first, then open via FTP or your hosting file manager:
wp-content/plugins/currency-switcher/js/front.js
Find this code (around line 175):
var data = {action: "wpcs_get_prices_html",prices_data: prices_data,};jQuery.post(wpcs_ajaxurl, data, function (data) {and replace it with:// The server redraws at most 500 prices per request, so send them in chunksvar wpcs_price_chunks = [];for (var wpcs_ci = 0; wpcs_ci < prices_data.length; wpcs_ci += 500) {wpcs_price_chunks.push(prices_data.slice(wpcs_ci, wpcs_ci + 500));}if (!wpcs_price_chunks.length) {// keep one request even with no prices, it also syncs the switcher on cached pageswpcs_price_chunks.push([]);}jQuery.each(wpcs_price_chunks, function (wpcs_chunk_index, wpcs_chunk) {var data = {action: "wpcs_get_prices_html",prices_data: wpcs_chunk,};jQuery.post(wpcs_ajaxurl, data, function (data) {Then scroll down to the end of this jQuery.post block, it ends with the line:});right before the closing brackets of the "if (typeof wpcs_array_of_get.currency" condition. Add one more line directly after it:});This closes the new loop. Save the file, clear the WP Rocket cache (WP Rocket may minify or combine JavaScript, so the old version can stay in its cache) and then clear your browser cache or open the page in a private window.
After that please switch the currency to USD and back to INR a few times and let me know whether all prices on the page now switch correctly.
Best regards,
Alex
Hello Snehal
Thank you for the detailed description, it made the cause easy to find.
This is an unusual case, we have not seen a page with so many prices before. When the option"I am using cache plugin on my site" is enabled, the plugin collects all prices on the page and asks the server to redraw them in the selected currency with one request. For safety the server processes at most 500 prices per request. Your page has several thousand prices (650+ TLDs in each of the 4 tiers), so only the first 500 are redrawn and the rest stay in the previous currency. That is why some prices switch to USD and some stay in INR. It also explains why max_input_vars, the cache exclusion and the storage setting did not change anything.
Let's try one experiment: the prices can be sent to the server in portions of 500. Please make a backup copy of the file first, then open via FTP or your hosting file manager:
wp-content/plugins/currency-switcher/js/front.js
Find this code (around line 175):
This closes the new loop. Save the file, clear the WP Rocket cache (WP Rocket may minify or combine JavaScript, so the old version can stay in its cache) and then clear your browser cache or open the page in a private window.
After that please switch the currency to USD and back to INR a few times and let me know whether all prices on the page now switch correctly.
Best regards,
Alex
Quote from Snehal Jedhe on October 30, 2026, 09:17Hello,
Thanks for the support and the solution.
I have updated the code.
The price is getting update but now facing one issue.
When I switch the currency, the price updates correctly, but the currency doesn't switch.
For example, on the first load, the price displays in INR, which is expected by default. The button currency is INR.
On switching the currency to USD, prices are getting updated to USD for all TLDs, but the button currency is not changing. It remains in INR.
Can you please let me know the issue and a correct, working solution for the same?
If you need anything else, please let me know.
Regards,
Snehal J
Hello,
Thanks for the support and the solution.
I have updated the code.
The price is getting update but now facing one issue.
When I switch the currency, the price updates correctly, but the currency doesn't switch.
For example, on the first load, the price displays in INR, which is expected by default. The button currency is INR.
On switching the currency to USD, prices are getting updated to USD for all TLDs, but the button currency is not changing. It remains in INR.
Can you please let me know the issue and a correct, working solution for the same?
If you need anything else, please let me know.
Regards,
Snehal J