New Zenner
- Join Date:
- Mar 2009
- Posts:
- 78
- Plugin Contributions:
- 0
new columns in category product listing in admin area
Hi there,
I’ve been trying to add new columns to the category product listing page so that I can view the “container type” of products in the list. I found some guidance in the forums, but have run into a bit of trouble.
What I’ve done so far:
I added the code below to the “category_product_listing.php” page.
I changed the header of the column.
<td class="dataTableHeadingContent" align="left"><?php echo ('Container Size/Type:'); ?></td>I added code to display the container size.
<td class="dataTableContent"><?php echo $products->fields['container_type']; ?></td>I added the 3 pieces of code below to “function zen_reset_page” query in the “prod_cat_header_code.php” file. The container type is pulled from a “products_container” table, so I assumed that I would need to modify a query to pull the “container_type” variable to the page.
“c.container_type,”
" . TABLE_PRODUCTS_CONTAINER . " c,
and p.container_id = c.container_id
Unfortunately, the container types do not appear in the column. I’m not sure what I am missing. I am a beginner at php, but I am trying to learn.
I would be very grateful for any advice.

