Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Advice request on minor change to Admin - Products Viewed


Recommended Posts



I would like to add a small feature to my admin area - partly because it would be useful and partly because it would be a good exercise for me in exploring some of the underlying structures and procedures in OSC.


In admin/stats_products_viewed.php the display shows the total views for each product but I would like to add to the bottom line a total of all views for all products.


I can do this manually with a SQL query but I would like some pointers on what would be the 'Acceptable OSC' way of doing this. I presume a mod to $products_query_raw would be a starting point to create a SUM variable to echo later but I would like a bit of advice if possible.


Also - Is there a way of affecting how many data rows display on this page (currently 5) without changing settings in other parts of the system.


I'd be grateful for any help

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...