Jump to content

Adding or Deleting Columns from Product Inventory Page


carnafeagh

Recommended Posts

I would like to add the weight to my products in the product inventory page. Is this possible? Can you delete any of them as well, such as translations?

 

I would like to make up some combination products and it would be easier to put in weight if I could see the individual weight of each product on the product inventory page.

 

Jill

 

CC V 5.2.16

Link to comment
Share on other sites

Certainly.

 

We will need to make a small edit to /admin/sources/products.index.inc.php, and a few edits to the admin template products.index.php.

products.index.inc.php
Near line 1211, find:
    $thead_sort = array (
Add after:
        'weight' => $lang['common']['weight'],
 
product.index.php
Near line 38, find:
                  <th nowrap="nowrap">{$THEAD.stock_level}</th>
                  <th nowrap="nowrap">{$THEAD.updated}</th>
                  <th nowrap="nowrap">{$THEAD.translations}</th>

Change to:
                  <th nowrap="nowrap">{$THEAD.weight}</th>
                  <th nowrap="nowrap">{$THEAD.stock_level}</th>
                  <th nowrap="nowrap">{$THEAD.updated}</th>
                  {* <th nowrap="nowrap">{$THEAD.translations}</th> *}
 
Near line 65, find:
                 <td>{$product.product_code}</td>
                 <td>{$product.price}</td>
                 <td align="center">{$product.stock_level}</td>

Change to:
                 <td>{$product.product_code}</td>
                 <td>{$product.price}</td>
                 <td>{$product.weight}</td>
                 <td align="center">{$product.stock_level}</td>
 
Near line 74, find:
                  <td align="center">
                      {foreach from=$product.translations item=translation}
                      <a href="{$translation.link}"><img src="language/flags/{$translation.language}.png" alt="{$translation.language}" /></a>
                      {/foreach}
                  </td>

Change to:
                  {* <td align="center">
                      {foreach from=$product.translations item=translation}
                      <a href="{$translation.link}"><img src="language/flags/{$translation.language}.png" alt="{$translation.language}" /></a>
                      {/foreach}
                  </td> *}
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...