fill64
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Woo mobiel App login after change WordPress login urlDear @mahfuzurwp
Thank you for your reply. I tried adding /wp-json endpoints in CF, but it still didn’t work properly. However, it’s possible that this is also caused by the different URL for logging in.
Forum: Plugins
In reply to: [Country Based Restrictions for WooCommerce] Cloudflare IP HeaderDear @kuldipzorem,
Thank you for the support I finally solved it with my own custom plugin since I couldn’t get yours to cooperate as I needed. Anyway without CloudFlare your plugin is functional at least for me on my site.
Forum: Plugins
In reply to: [Country Based Restrictions for WooCommerce] Cloudflare IP HeaderDear @kuldipzorem
Do you have any new advice or procedures on what I should do? I’m already desperate that it’s not working and I don’t know what to do anymore.
Thank you
Forum: Plugins
In reply to: [Country Based Restrictions for WooCommerce] Cloudflare IP HeaderHi @kuldipzorem
Thanks for your response earlier. I wanted to give you a full update on what weβve tried so far, hoping this gives better insight.
β Context:
I use your plugin to hide certain products for visitors from specific countries (e.g. UAE). It worked fine until I activated Cloudflare (free plan) to mitigate bot attacks. After activating Cloudflare, users from restricted countries started seeing the hidden products again. π What weβve done so far:- Cloudflare proxy is active (orange cloud).
- Cloudflare correctly sends
CF-Connecting-IPandCF-IPCountryheaders. - My server (Websupport) uses Apache with
mod_remoteipenabled, soREMOTE_ADDRis correctly populated with the visitorβs real IP. - Verified that:
$_SERVER['REMOTE_ADDR']= real client IP (e.g. UAE test IP).WC_Geolocation::geolocate_ip()returns correct country (e.g.AE).
- Added this to
functions.php:
add_filter('woocommerce_geolocation_ip', function($ip) { return $_SERVER['HTTP_CF_CONNECTING_IP'] ?? $ip; }); add_filter('option_wpcbr_force_geo_location', '__return_true');π§ͺ What works and what doesn’t:- β When Cloudflare is paused, everything works fine β user in UAE sees no restricted products.
- β When Cloudflare is active, and the correct IP is passed, the user sees the restricted products again.
π§Ό Cache cleared:
- Cloudflare cache was purged completely.
- Development Mode enabled.
- Browsers tested in incognito with no cookies.
- Page rules and Cache Rules were temporarily removed.
π€ My assumption:
It seems your plugin is possibly caching the country in a cookie or not re-evaluating the IP if one was cached previously β or it may not respect the
woocommerce_geolocation_ipfilter when using Cloudflare. π Question:Can you confirm:
- Does your plugin rely on
WC_Geolocation::geolocate_ip()directly? - Does it cache the result (e.g. from cookie)?
- Can we force it to always re-check based on real IP or override with a hook?
Thank you for your time β weβve come very far in debugging this and appreciate any input you might have to make it work reliably with Cloudflare.
Best regards,
- This reply was modified 1 year, 1 month ago by fill64.
Forum: Plugins
In reply to: [Country Based Restrictions for WooCommerce] Cloudflare IP HeaderDear @kuldipzorem
I had set in Cloudflare – Rules -> Page Rules – rule to:
Domain: https://mydomain.com/
Cache level: cache everithing
Edge cache TTL: 2 hours
I removed that rule.And in Caching – Configuration – Cache Level I have set to Standard
Did I forget something? Thats ok?
Thank youForum: Plugins
In reply to: [Kadence WooCommerce Email Designer] Custom email template not showingHi support,
yes your code helped me thank you very much, I can already see the template in Kadence Email customizer. But it doesn’t send me that email when I change the status. But it’s no longer a bug on the Kadence plugin side. I have to tweak that somehow. Thanks anyway for the great help πDear Yordan,
thank you very much for your help it works great. I took the SK translation file from wp-content/plugins/woocommerce-pdf-invoices-packing-slips/language/woocommerce-pdf-invoices-packing-slips-eng_SK.po and opened it in PoEdit and the string was not there. But as I did update the POT file according to your instructions it filled in the missing strings for translation. Thank you very much I am a bit smarter again and can continue working.
Kind regards
Dear @aamiribsf,
do you have any new information or ideas to solve my problem please ?Thank you
Hi so I’ve tried the WP Mail SMTP plugin, set everything up and tested. I have also reached out to hosting support, they have looked at everything tested set up SPF and DKIM, but the gmail emails keep going to SPAM. Here is also the last test:https://www.mail-tester.com/test-jpxjcz1ij
Can you please help me somehow what to do?Thank you
Forum: Plugins
In reply to: [WP Video Lightbox] Change youtube thumbnail (bad dimension)Hello,
Ok thank you π
Forum: Plugins
In reply to: [WP Video Lightbox] Change youtube thumbnail (bad dimension)Hi,
Thank you for your fast answer.
I tried to edit the parameters in the CSS according to the documentation, but after editing the CSS, the thumbnails are flattened.
I need your plugin to take this URL as a source of thumbnails:
https://img.youtube.com/vi/VIDEO_ID/mqdefault.jpg – Because youtube generates a 16: 9 thumbnails format on this link.Look at the difference
You are using this – https://img.youtube.com/vi/K34QN-sRW3Y/0.jpg – this thumbnail have black bars top on bottom.I need use this link – https://img.youtube.com/vi/K34QN-sRW3Y/mqdefault.jpg – which is cropped to a 16: 9 format.
Then, when the plugin will use the new source on the thumbnails, my videos will be without black bars. https://snag.gy/FOAhf9.jpg
Thank you