Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

adding stock qty to category root in admin


Guest

Recommended Posts

EP hasnt been very useful to me since I wanted to download the catalogs contents then update qty's and then reupload them daily. Since I have some html in my product descriptions it doesnt work out, also the EP file has to include everything or certain things get defaulted.

 

I need to make a contrib to show my products quantity in the admin categories.php page next to the item, instead of having to click each product for the qty to show on the right hand side.

 

If anyone has done something like this can you point me to it?

 

Since I am kinda limited on php I was thinking of taking one of the numerous "show product quantity" contribs and putting the code into categories.php

 

<td align="center" class="main">There are currently <b><?php echo tep_get_products_stock($product_info['products_id']); ?></b> available in stock.<p></td>
           </tr>

 

But I am not sure where to put this code in on the page, categories.php is one of the bigger files that does lots of functions. I am also assuming most of the variables of the above code will already be set

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...