Grow your CSS skills. Land your dream job.

Sold To Date Counter

  • # November 20, 2012 at 2:29 pm

    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?

    Thanks!

    # November 20, 2012 at 3:06 pm

    Why not just log the sales into the database and then output it with PHP?

    # November 20, 2012 at 3:27 pm

    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.

    # November 22, 2012 at 10:50 am

    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.

    Thanks guys.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".