cabrerahector / wordpress-popular-posts

WordPress Popular Posts - A highly customizable WordPress widget that displays your most popular posts.
https://wordpress.org/plugins/wordpress-popular-posts/
GNU General Public License v2.0
279 stars 83 forks source link

Increment View Count on Quick View Modal or Button Click #260

Closed ptrsmk closed 4 years ago

ptrsmk commented 4 years ago

It would be beneficial to have a straightforward method of triggering a view count update / increment when a "quick view" is used. For example, if I use a quick view plugin on my WooCommerce store, I'd like that view to be counted.

It would be nice if I could just include a small script in that Quick View modal that would trigger an increment of the view count.

Maybe this is basically possible as of now, but I've just missed it. If so, please, do let me know. Thanks.

cabrerahector commented 4 years ago

Hi there,

Yes, this has been asked before and yep there is: WPP with an AJAX-based site. That should get you on the right track but if you have any questions don't hesitate to ask.