Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Add field to products_description table

Add field to products_description table

Locked

Views: 1,390

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
1 Apr 2007, 6:38 PM
#1
pjb923 avatar

pjb923

Zen Follower

Join Date:
Jan 2005
Location:
NY
Posts:
135
Plugin Contributions:
0

Add field to products_description table

I am trying to add a new field that is editable through the admin product entry page.

I created a new field in the Products_description table called "products_ingredients". Next I modified the following files.

\admin\includes\modules\product\collect_info.php
\admin\includes\modules\product\preview_info.php
\admin\includes\modules\copy_to_confirm.php
\admin\includes\modules\update_product.php
\admin\includes\languages\english\product.php
\admin\includes\functions\general.php

I based all of my changes on the struction of the products_desription field and copied and pasted, making the necessary changes to point to my new ingredients field.

So far, I was able to get the field to show up on the admin page, and successfully have data written to the database. I am able to display this data on the product info page. Everything appears to be working fine.

My problem is that if I try to edit the product again, the ingredients field is empty and the data is cleared from the database. I am going crazy trying to figure out what I am missing.

Any help would be appreciated.

Thanks.