Hi, I created page for list of user favorites posts with shortcode [rh_get_user_favorites]
I excluded this page from cache. When I click on “getHotThumb” button in the post, this post is displayed in list of user favorited posts – so it works well.
Problem is on pages and posts with “getHotThumb” button. When I click on it, it display correct state of this button like “added to wishlist”. But after I refresh page, this button display previous state “add to wishlist”. It looks like I never clicked on this button. And for website user this is very confusing.
Such favorited post is displayed on page with list of user favorited posts, but in this post it’s “getHotThumb” button says that this post is not favorited yet.
But I can not exclude all pages from cache on which is displayed “getHotThumb” button, because in this case using of caching plugin does not make any sense.
Please, can you add function which update “getHotThumb” button state via an AJAX call after page load in order to accommodate cached pages.
Such function is already used in favorites plugin and it works. But problem here is that layout of list of user favorites posts doesn’t contain buttons for posts (including button for displaying coupon). And such button are not presented even in template “Favorites list”, which you created for your theme.
- John asked 2 years ago
- last edited 2 years ago
- You must login to post comments
Warning: fopen(/home/wpsoul34/public_html/wp-content/sabai/really-simple-captcha/.htaccess): failed to open stream: Permission denied in /home/wpsoul34/public_html/wp-content/plugins/really-simple-captcha/really-simple-captcha.php on line 309
Warning: imagepng(/home/wpsoul34/public_html/wp-content/sabai/really-simple-captcha/004a7f42612efc3d842de335724dcdd3.png): failed to open stream: Permission denied in /home/wpsoul34/public_html/wp-content/plugins/really-simple-captcha/really-simple-captcha.php on line 147
Warning: fopen(/home/wpsoul34/public_html/wp-content/sabai/really-simple-captcha/004a7f42612efc3d842de335724dcdd3.txt): failed to open stream: Permission denied in /home/wpsoul34/public_html/wp-content/plugins/really-simple-captcha/really-simple-captcha.php on line 170