I’ve searched high and low for something of this sort and I’m coming up empty at every turn.
I’m looking for a counter script with these features:
1. Continually counts up.
2. Does not reset on page reload.
3. Can increase on random intervals. e.g. +7, +13, +1, etc..
This will be used as a “Sold to Date” counter. I’ll be averaging their daily sales and incorporating that into the scripts integer increase.
Here’s a sample of a count down timer: http://cnanney.com/journal/demo/apple-counter/countdown.php
That script counts down to a specific date so it has something to check again but this counter would have a constant, and count up.
Any thought, suggestions, ideas, alternatives?
Why not just log the sales into the database and then output it with PHP?
I agree with Andy. If its a eCommerce site, I would imagine it has a database behind it. Just count sales of the item and echo it out.
I considered that but this isn’t an eCommerce site. It’s a brick and mortar shop with a POS system that is great but adding in that function is way out of budget.
Although, I think I found my answer In this article : http://cnanney.com/journal/code/apple-style-counter/
One of the later comments discusses how to add a fixed state date to the counter. I’ve demoed it and it works great, but now I have to setup the random intervals.
Their sales are very consistent so I think this solution would be fair enough.
You must be logged in to reply to this topic.