fkoomek
Forum Replies Created
-
Forum: Plugins
In reply to: [W3 Total Cache] Front page not cached (Polylang)Thanks for your help, I’ll check that ??
Forum: Plugins
In reply to: [W3 Total Cache] Still cached for logged in usersThank you.
I’ll give it a try.Forum: Plugins
In reply to: [Side Cart Woocommerce | Woocommerce Cart] ajax call to get current currencyThanks for your answer.
I am using currency switcher by Algoritmika.
I tried also switcher by WOOCS, but it’s the same. Actually, both plugins work very badly with caching plugins. Algoritmika solution is to enable Woocommerce “detect geolocation with caching support” which actually means losing caching advantages – useless. Plugin by Woocs adds some additional Ajax call, but it doesn’t work either.
So, I decided to find other solution. I disabled caching support and as I am using also Polylang plugin, I tied up currencies with languages. This way, prices are cached correctly according to currencies tied up with languages.
However, after switching language, currency doesn’t change in Ajax Cart. Maybe, it’s a problem with the currency switcher plugin.
You can check it here https://test.liberlapidum.com/
Try to add an item on a single product page (I disabled Ajax on archives) and switch languages back and forth.Great, thank you very much and keep up the good work ??
And be sure to disable locales and detection by IP sections in plugin settings.
Hi.
I am not developer, so I am not sure if this is the right solution, but seems like it’s working. I tried to went through the plugin files and came up with this:function setcurrency(){
if ( !is_checkout() ) { /** exclude checkout page**/
if (get_locale() == ‘pl_PL’) {
alg_wc_cs_session_set( ‘alg_currency’, PLN );
}
else{
alg_wc_cs_session_set( ‘alg_currency’, USD );
}}
}
add_filter(‘wp_head’,’setcurrency’,99);It ties up selected language of site with certain currency. However, it isn’t possible to use switcher then. You can for example exclude Checkout page from this condition and put switcher there.
Hi.
You can try setting up geolocate (with page caching support) in advanced tab in settings of the plugin. However, it seems that this way you lose advantage of cache plugin.Forum: Plugins
In reply to: [W3 Total Cache] Still cached for logged in usersThanks for your time and answer. I am grateful for that.
So, I tried some testing and found out following:
It’s definitely an issue with a browser cache.
I am not really sure if it worked like this in the past, but for me, it works in the way that WordPress pages are always browser cached, even with the plugin disabled. I tried fresh new WP install only with default theme activated without any plugins and the pages are always browser cached. When I first visited for example homepage, logged in and visit homepage again, it was browser cached and I had to reset browser cache manually to see the admin bar. So, I guess it’s not a plugin issue.
Logically, neither disabling browser caching in the plugin, nor purging all caches didn’t help. The browser cache wasn’t erased.
I tried 3 different browsers with no difference.
For now, I added this piece of code to htacess file to totally prevent browser caching and it solved the problem.# DISABLE CACHING
<IfModule mod_headers.c>
Header set Cache-Control “no-cache, no-store, must-revalidate”
Header set Pragma “no-cache”
Header set Expires 0
</IfModule>Is the behavior of browser caching which I described normal?
Forum: Plugins
In reply to: [W3 Total Cache] Cache preload questionsHi.
Try setting up cron job that will be automatically visiting your site. You can do this on your server, or also even some shared hostings offer this feature in administration.It looks great.
Thanks! You helped me again.
I am going to test this further if there is any problem, but it seems working correctly.
However, if you had free time, you could also reflect the currency format on the admin Summary Orders page ??
https://liberlapidum.com/wp-content/uploads/2018/10/fix.pngHi.
How can I try it? ??Hello. I noticed an update was released. Unfortunately, it doesn’t solve “listen to visibility” bug ?? Is it going to be fixed in next release? Thanks
Hello.
Yes, I mean admin order page. For example, let’s say I use CZK currency and in your plugin, I set custom price format like – none decimals, different thousand separator and symbol position. So, on the frontend, all prices look like 2 125 K?, 1 132 K? etc.
However, when I make a purchase, go to Admin orders, the prices are shown according to the default woocommerce format. Like K?2,125.35 K?1,132.57 etc.
Also when I change order status to completed, a customer gets an confirmation email with prices looking like that. It’s quite useless because the prices look differently than on the frontend.I tried to switch to the plugin by realmagg and this problem doesn’t appear.
Forum: Plugins
In reply to: [WooCommerce] show out of stock products on a single pageHi.
Thanks for your help. To make things clear…
I am building a shop specializing in the sale of precious stones.
So all products are unique and when they are sold they won’t be available again.
I already customized stock status to ‘available’ or ‘sold’ and my intention is to create PRODUCTS ARCHIVE where visitors could find stones which were sold in the past. That’s why I am trying to hide out of stock products from whole shop except one page – PRODUCTS ARCHIVE.
As I wrote before, the code above works only halfway. It hides out of stock products from search results and main shop page but not from category to which the product belongs to.
My shop is available on https://liberlapidum.com/
As you can see, I have one product in the archive and it is hidden on the main shop page and search results. However, it’s still visible in ‘Sulfates category’. I thought that some little change in snippet may help but I can’t do it on my own. I have very basic PHP skills.thanks, that would be great ??