Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: Decrement view counts #15

Closed
codyjames opened this issue Aug 27, 2021 · 3 comments
Closed

FR: Decrement view counts #15

codyjames opened this issue Aug 27, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@codyjames
Copy link

Here's the thing: you built a great plugin with a singular purpose but then you made it work so well for a whole lot of purposes. The purpose I'm using it for is to indicate how many folks have added an item to their shopping cart. However, I'd love to be able to both increment and decrement that number. Any chance that could be added to the functionality here?

@lindseydiloreto
Copy link
Contributor

That's... fascinating. I definitely intended for it to be flexible, yet somehow never thought of decrementing values.

I'm not quite ready to add a decrement function at this moment. This feature request fits very nicely with some long-term plans that we have for View Count. I'll leave this FR open until it one day gets added.

In the meantime, you could probably fork the plugin and add a decrement method of your own. Copy as much logic as you can from the increment method, and just "invert the polarity", so to speak.

Hope that helps! Great suggestion, it'll definitely be added eventually. 👍

@lindseydiloreto lindseydiloreto added the enhancement New feature or request label Aug 27, 2021
@codyjames
Copy link
Author

Sounds good to me! Thanks, @lindseydiloreto!

@lindseydiloreto
Copy link
Contributor

Good news! It's now possible to decrement a counter in v1.2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants