Forums / Templates, Stylesheets, Page Layout / Modifying the Column Display in Admin

Modifying the Column Display in Admin

Started by stizzed on 26 Feb 2012, 6:32 AM · Views: 736

Results 1 to 4 of 4
26 Feb 2012, 6:32 AM
#1
stizzed avatar

stizzed

New Zenner

Join Date:
Jan 2012
Location:
Northern Indiana
Posts:
42
Plugin Contributions:
0

Modifying the Column Display in Admin

All,

I would like to modify the column data displayed in the Admin. Specifically, I would like to add WEIGHT and ALWAYS FREE SHIPPING (0/1) columns to the category/product display.

I searched to see if this can/had been done or requested and found nothing.

Any assistance would be greatly appreciated!

Thanx in advance!

Michael (Zen Greenhorn)
Remember: Every expert started out as a beginner!

26 Feb 2012, 4:04 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Modifying the Column Display in Admin

You can customize the file:
/admin/includes/modules/category_product_listing.php

and add those with the code in RED:

                <td class="dataTableContent"><?php echo $products->fields['products_model']; ?></td>
                <td class="dataTableContent"><?php echo zen_products_lookup($products->fields['products_id'], 'products_weight'); ?></td>
                <td class="dataTableContent"><?php echo $products->fields['product_is_always_free_shipping']; ?></td>
                <td colspan="2" class="dataTableContent" align="right"><?php echo zen_get_products_display_price($products->fields['products_id']); ?></td>

and adjust the headers for the new columns ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

26 Feb 2012, 6:36 PM
#3
stizzed avatar

stizzed

New Zenner

Join Date:
Jan 2012
Location:
Northern Indiana
Posts:
42
Plugin Contributions:
0

Re: Modifying the Column Display in Admin

Thank you (again) Linda! Header adjustment was a breeze.

You are TOPS! :bigups:

Have a terrific Sunday!

Michael (Zen Greenhorn)
Remember: Every expert started out as a beginner!

26 Feb 2012, 6:37 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Modifying the Column Display in Admin

Thanks for the update that this worked for you ... have a good one ... :cool:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!