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