Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

displaying # of sales on the front end of site...


Recommended Posts

Hello All.


I am selling downloadable audio & multimedia in my osC shop on a consignment basis. What I need to be able to do is display each artist/developer's # of downloads right on their product page in addition to being reported on the admin side (as it is right now).


I was curious if anyone could tell me what I need to do to make this happen or if it's even possible at all?


Thanks a million! :)


Link to comment
Share on other sites

In products_info.php, find the line:


$product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, ...... etc .......








p.products_model, p.products_ordered,


Add the following line in the HTML that sets the layour of the page (just after the bit that does the price for example):


<td class="pageHeading" align="right" valign="center"><?php echo $product_info['products_ordered']; ?><p>


The quantity ordered will now be displayed - you'll have to play about with the layout and any label like '## downloads so far..' etc

Link to comment
Share on other sites


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

  • Create New...