Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Sold To Date Counter

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #40895
    emaildano
    Participant

    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!

    #114957
    pmac627
    Participant

    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.

    #104977
    emaildano
    Participant

    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 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.