September 08, 2010, 10:20:41 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to JROX.COM Forums! 
 
Pages: [1]
  Print  
Author Topic: Adding Photo Count For Manage Products  (Read 295 times)
intercel
Newbie
*
Offline Offline

Posts: 39


View Profile
« on: March 01, 2010, 11:02:08 AM »

Problem:  You have a lot of products but you can't remember which ones have photos and which ones don't unless you click edit for each product and go to the photo tab.

Simple Fix:

1.) Edit yourRootDirectory/system/application/views/admin/tpl_adm_products_table.php
  - Edit about line 60 to look like this:
Code:
<th width="23%" align="center"><?=$this->lang->line('actions')?></th>
<th width="10%" align="center">Photos</th>
<th width="10%" align="center">&nbsp;</th>

 - Edit about line 123 to look like this:
Code:
</td>
<td><?=$this->db_validation_model->_get_count('products_photos', 'WHERE product_id = '.$v['product_id'])?></td>
<td align="center"><input name="product[]" type="checkbox" id="product[]" value="<?=$v['product_id']?>"/><input name="product_id[]" type="hidden" id="product_id[]" value="<?=$v['product_id']?>"/></td>

2.) Save.

You're done!
Logged
Pages: [1]
  Print  
 
Jump to: