The latest update ruined the plugin. I doesn’t work any more.
Went back to previous version.
]]>Hello
Seems to be a very simple and effective plugin. One question though….presumably I need to clear my entire cache (or all pages where the widget is served) before the the Ajax widget starts loading uncached?
]]>Hello, I installed and activated your plugin, I also have WP Fastest Cache plugin active on my site.
I cannot get the “Recently Viewed Products’ widget to display on any of my shop pages, even though the widget is indeed set in Appearance>Widget>Shop Page Widget Area
any advice?
]]>I just installed and test this plugin intending to solve the problem of my login/logout widget on the sidebar. Because of caching, the user status is not reflected in the sidebar.
I follow the instruction to drag the Ajax Widget to the main sidebar, then added the login/logout shortcode in the Ajax Widget. When I refresh a page, it looked fine. But when I tried to login, I got a white screen. I have to press the Back button on the browser to get back my screen.
How can this be solved?
In addition, the loading of the Ajax Widget is quite slow.
Is there a way to hide the progress spinner that appears when widget is loading?
]]>Hi Sir,
Is it possible use No Cache AJAX Widgets plugin for a single post where I used Top Ten – Popular Post Views plugin.
How can I implement your plugin in a php template?
Cheers
Daro
Hi there,
I use your plugin to prevent caching of a social media feed widget.
I recently updated the plugin called “Easy Social Post Feed” and noticed that since the plugin has been updated I can no longer see the facebook post captions (copy) when using your plugin. I can however see the captions when I do not use your plugin. Any idea why this is happening. Everything else works but this one item in the feed does not show up when I use this plugin.
Thank you.
]]>Hey,
Is there a way I can refresh the add to cart button on page load using this plugin?
Thanks
]]>I have a problem with my system caching of the add to cart button.
I’ve been inspired by this thread: https://stackoverflow.com/questions/45633616/customizing-add-to-cart-buttons-based-on-user-country-and-product-ids?rq=1
I enabled back orders in USA on specific product categories only. The add to cart is removed when it detects that the client is from another country.
The code work well when I test it on my dev environment without caching enabled.
The issue is that once I pushed it live, the add to cart button show up in other countries because my live environment have caching enabled. The button has been cached by the system from users in USA.
I use WP ENGINE and their system allows only to block page links from their caching system.
Here’s my code added in functions.php:
/***********************************************************************
** Hide add to cart on specific categories in other country, show it only in USA **
***********************************************************************/
// Conditional function country code detection
// @argument $code (string): country code restriction
// @return boolean
if( ! function_exists(‘is_from_country_code’) ){
// ==> HERE below set your country code (Replace ‘US’ by yours)
function is_from_country_code( $code = ‘US’ ){
$location = new WC_Geolocation;
$user_ip = $location->get_ip_address();
$user_country_code = $location->geolocate_ip( $user_ip, false, false )[‘country’];
return $user_country_code == $code ? true : false;
}
}
// Replace “Add to cart” single product button and quantity by a custom text
add_action( ‘woocommerce_single_product_summary’, ‘Custom_single_add_to_cart’, 1 );
function Custom_single_add_to_cart(){
global $product;
// Set here your product IDS
$categories = array( ‘category1’, ‘category2’, ‘category3’ );
if( is_from_country_code() ||
( ! is_from_country_code() && ! has_term( $categories, ‘product_cat’, $product_id ) ) )
return; // Continue for foreign countries and the specific products IDs
remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_add_to_cart’, 30 );
}
Is there a way I can refresh that snippet of code using your Ajax plugin on page load?
]]>Thanks for providing this. Does this work with WP Rocket? I have added the Ajax Widget to my widget sidebar, but they still appear to be cached. The latest version of WordPress installed.
UPDATE
Ah, I see now. I think you need to add the shortcodes inside of the ajax widget. I thought you just placed this on the sidebar and the whole sidebar wouldn’t be cached. A majority of my sidebar is ajax and some of the custom plugins I use don’t have shortcodes.
UPDATE 2
I have found a way to fix this. For those looking to remove the cache for the whole sidebar, or various other plugins, you can add them to the ‘Exclude’ list. Go to your cache plugin. Find the exclude pages/post part. Add your plugin files/folder to the exclude list. In my case, it was my sidebar.
/wp-content/themes/<theme name>/sidebar.php
If you add /wp-content/plugins/< you’re ajax plugin folder> it may also exclude this from the sidebar from being cached. I was looking to remove the cache for the whole sidebar, so if you have a few plugins with shortcodes perhaps use this plugin or exclude the files manually. My whole sidebar is now not being cached!
]]>Adrotate group shortcode doesn’t work at all – it just shows raw shortcode and if i use ad shortcode([adrotate banner="1"]
for example), then i’m getting error:
Error, Ad is not available at this time due to schedule/geolocation restrictions!
It’s same on either options of WPSC, so there’s no point in sharing those i presume.
]]>I tried to load a gravity form via shortcode as a ajax widget, but the form doesn’t show up. Only text is loaded.
]]>I love the idea of this plugin, but it only works properly with WP Super Cache caching disabled. Has the developer abandoned the plugin? Are there any other still-alive plugins that provide a similar functionality? A quick search didn’t reveal any.
]]>I have a shortcode:
[cart]
but When i paste that into the widget, it does not work.
]]>I tried using this plugin with wp-super-cache.
It seems to load ajax, but not the one that is saved/updated in the admin widget.
Sadly, this does not offer the promised feature (dynamic widget in a cached page)
]]>I have a simple html form I would like to use with this plugin In a widget).
This form has a small javascript embedded within the form for validation. Without the javascript, the form in widget works great. When I try to add the javascript, the widget will not work.
Is there a suggested method for including embedded javascript in a widget?
Thank you for any suggestions.
]]>Hello
This plugin looks that does what I was looking for with a small side effect
I use this plugin to run the wp-rss-aggragetor shortcode to display various rss feeds on the sidebar. And the feeds refresh nicely without having to clear the sites cache each time.
But there is a side effect that I can not fix it.
The wp-rss-aggragator has the option of opening the feed links in a lightbox style using the colorbox script.
In a standard wp text widget the rss plugin works fine but when executed within the no-cache-ajax-widget something happens and does not get constructed properly resulting of not working and the links opening in the same window.
Any suggestions – modifications to correct this issue?