roadlink
Forum Replies Created
-
Forum: Plugins
In reply to: [Google for WooCommerce] Fatal error on coupon page: “is_setup_complete”3.5.2 works OK.
Hi there,
Any update on this?
thanksForum: Plugins
In reply to: [WC Korkmaz Contract – Contracts for WooCommerce] Checkout block’da çalışmadıMerhaba, oldu ama yabancı bir sitede kullanamadım.
2. “okudum, onaylıyorum.” ve “Devam etmek için sözleşmeyi kabul etmelisiniz.”
Bunlar block (checkout blocks) JS dosyasında hardcoded olarak yazılmış:
- irem-block-frontend.js:73 →
"okudum, onaylıyorum." - irem-block-frontend.js:135 →
"Devam etmek için sözleşmeyi kabul etmelisiniz." - block.json:39 → default değer
Bunlar da Loco Translate ile çevrilemez çünkü JavaScript’te
__()i18n fonksiyonu kullanılmamış, düz Türkçe string yazılmış.I did 🙂
Btw I have 2 websites on same hosting. It worked for one of them.
But exactly same config file didn’t work on the other one.
I mean file is there but no log.
https://monosnap.ai/file/kDTS3GDGKFdW1krDJ9WoToWZstxdjkthat worked very well. Thank you
Hi Bowo,
Convesio keep wp-config.php file but use wp-convesio.php file for settings.
What line should I need to add there?
I can do it manually.
I use another log plugin within this way.Here are logs from other plugin about this.
Mar 03, 02:44:58
Warning: chmod(): No such file or directory in /var/convesio/wordpress/wp-admin/includes/class-wp-filesystem-direct.php on line 173
Mar 03, 02:41:59
PMCS Caught Exception: Failed to update the config file. in /var/convesio/wordpress/wp-content/plugins/debug-log-manager/classes/class-wp-config-transformer.php on line 421
Mar 03, 02:41:59
Warning: file_put_contents(/var/convesio/wordpress/wp-config.php): Failed to open stream: Permission denied in /var/convesio/wordpress/wp-content/plugins/debug-log-manager/classes/class-wp-config-transformer.php on line 418Forum: Plugins
In reply to: [Meta for WooCommerce] broken plugin config pagemine is fixed with new version. But I don’t know how it happened.
Forum: Plugins
In reply to: [Splide Carousel Block] Woocommerce support?wow very fast reply. thanks.
Forum: Plugins
In reply to: [WC Korkmaz Contract – Contracts for WooCommerce] Checkout block’da çalışmadıselamlar,
yasal sözleşmeler olarak block ekledim ama gene de çıkmadı.
https://prnt.sc/-mWGo0Hjg_vaThat is great advice. Thanks a lot.
Hi,
thx for reply.
I don’t like to add my SSR in here publicly.
Maybe can send by email.Hi Kamal,
Thanks a lot. I use both your compare plugin and wishsuite plugin.
They both need this feature frankly speaking.
Please let me know if you need anything.thx
Hi there,
Just go through the plugin with AI (Cursor) 🙂
It says there can be some changes applied like woocommerce’s cart fragment.
If you can do it both of evercompare and wishsuite, that would be great.
Here are some notes from AI.Changes Made
1. New AJAX endpoint for count fragments (includes/classes/Ajax.php)- Added ever_compare_get_count endpoint that returns the current count
- Similar to WooCommerce’s cart fragments system
- Includes no-cache headers to prevent Cloudflare caching
2. JavaScript auto-update (assets/js/frontend.js)
- Fetches the count via AJAX after page load (500ms delay)
- Updates all .htcompare-counter elements on the page
- Works even on cached pages, ensuring the correct count is displayed
3. Template update (includes/templates/evercompare-count.php)
- Added data-evercompare-count-wrapper attribute for identification
- Count still renders server-side initially, then updates via AJAX
4. WP Rocket & Cloudflare compatibility (ever-compare.php)
- Excludes AJAX endpoints from WP Rocket cache
- Adds compare cookie as a dynamic cookie for WP Rocket
- Sets proper no-cache headers for Cloudflare
How It Works
- Initial load: Count is rendered server-side (works for non-cached pages)
- After page load: JavaScript fetches the current count via AJAX (~500ms delay)
- Update: Count updates automatically to the correct value, even on cached pages
- No caching: AJAX endpoints are excluded from both WP Rocket and Cloudflare caching
This matches WooCommerce’s mini cart behavior: the count appears quickly, then updates after a short delay to show the correct value even when the page is cached.The solution is production-ready and follows WordPress and WooCommerce best practices. Test by:
- Adding products to compare
- Visiting a cached page
- The count should update automatically after ~1 second
Performance optimizations implemented
1. Smart execution — only when needed- Runs only if caching is detected (WP Rocket, Cloudflare indicators)
- Skips entirely if no counter element exists on the page
- Uses requestIdleCallback when available (runs during idle time)
2. Request deduplication
- Prevents multiple simultaneous requests
- Only one AJAX call per page load
- 3-second timeout to prevent hanging
3. DOM update optimization
- Only updates if the count actually changed
- Avoids unnecessary DOM manipulations
- Skips if count matches current value
4. Server-side efficiency
- No database queries — reads cookies only (~0.01ms)
- Minimal PHP processing
- Tiny JSON response (~50 bytes)
- Response time typically under 10ms
5. Non-blocking execution
- Runs after page load (800–1500ms delay)
- Does not block critical rendering
- Fails silently if the request fails
Performance impact analysisCustomer-facing
- No visible slowdown: runs in the background after the page renders
- Update occurs ~1 second after page load
- Page remains responsive
- Impact: imperceptible
Server load
- Typical request: ~2–5ms (reads cookies only)
- One request per page load with a counter
- 1,000 visitors/hour ≈ ~5 seconds total server time
- Impact: minimal
ComparisonThis matches WooCommerce’s cart fragments, which are standard on millions of sites.Recommendations
- Monitor server load: check if requests spike under heavy traffic
- Optional CDN caching: not needed since cookies are dynamic
- Rate limiting: already handled via request deduplication
Summary
- Minimal impact: one lightweight request after page load
- Customer experience: no slowdown, updates happen in the background
- Server load: ~2–5ms per request
- Best practices: follows WooCommerce patterns with additional optimizations
The code is production-ready and optimized for both performance and reliability. The impact should be negligible while ensuring accurate counts on cached pages.
Forum: Plugins
In reply to: [WishSuite - Wishlist for WooCommerce] Where to put template filesThanks a lot.
If you don’t mind, I would suggest to add this and also available shortcodes to readme file for other people. - irem-block-frontend.js:73 →