Jump to content
Sign in to follow this  
rebelsheep

Site Counter

Recommended Posts

Posted (edited)

I've just transfered an old site built on an old version of OSCommerce to a the Phoenix build.

On the old site it had a counter in the footer for the number of 'site requests'. It was using the values stored in the 'counter' table in the database.

How is the value updated in the counter table? Is the counter table part of the default installation of OSCommerce?

If it is part of the default install - where is the setting / code to update the table - how do I switch it on?

Thank you.

(I have written code to write the value of the counter to the website - just not sure how to update it. Also if it is an existing feature, I really don't want to be writing my own custom code that might conflict with anything that is already there!)

Edited by rebelsheep

Share this post


Link to post
Share on other sites

IIRC, site counter was removed a very long time ago (years, perhaps 4 or 5 years ago). 

The questions I asked prior to its removal;

  1. what use is that count to the shop owner
  2. what use is that count to a site visitor

Concluded (crowd-sourced) answers were "useless" and "useless". 

To re-instate it in Phoenix, a way to do it would be to build out a footer_suffix module for it or maybe it could be done by a siteWide hook.


This is a signature that appears on all my posts.  
IF YOU MAKE A POST REQUESTING HELP...please state the exact version
of osCommerce that you are using. THANKS

 
Get the latest Responsive osCommerce CE (community edition) here

Share this post


Link to post
Share on other sites
Posted (edited)

burt - I totally agree, I think a site counter is an anacronysm, outdated, pointless and naff. But client insists so......

ruden - thank you very much your links gave me the code to get a working counter again.

 

Yuk!  🙂

Edited by rebelsheep

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×