carnafeagh Posted January 24, 2015 Share Posted January 24, 2015 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 Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 24, 2015 Share Posted January 24, 2015 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> *} Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.