Admin area:
1) Add new content which allow you to add/change data in the new fieed
admin/includes/modules/product/collect_info.php
Add a line, just copy and change all between <tr> …</tr> Consider <tr> …</tr> space as well.
2) Create a function which extract data about the new field from database in:
/admin/includes/functions/extra_functions/extra_data_1.php
for example:
function zen_get_products_mynewfiled($product_id, $language_id) {
global $db;
$product = $db->Execute(“select products__mynewfiled
from ” . TABLE_PRODUCTS_DESCRIPTION . ”
where products_id = ‘” . (int)$product_id . “‘
and language_id = ‘” . (int)$language_id . “‘”);
return $product->fields['products_mynewfiled'];
}
3) Add into database, into table yourprefix_product_description table your filed :
products_mynewfiled
4) Add this filed into the following page (coding) to be considered for add/change a product content
/admin/includes/modules/update_product.php
/admin/includes/modules/collect_info.php
/admin/includes/modules/preview_info.php
Front End
Function of what fields is added here files to be changed:
/includes/modules/tabbed_products_pro.php
/includes/modules/pages/document_general_info/main_template_vars.php
/includes/templatess/YOUR_TEMPLATES/templates/tpl_product_info_display.php




(8 votes, average: 4.88 out of 5, rated)