ok, I found out what needs to be done. so if anyone else wants to do this here's kind of tutorial or at least guidelines to follow.
after you add the new fields (search the forum if you don't know what to do).
you need to edit few files.
**1. in the language files you use enter definitions
in my case it would be **
define('TABLE_HEADING_EDITION', 'Edition');
define('TABLE_HEADING_COLOR', 'Color');
define('TABLE_HEADING_TYPEMTG', 'Type');
define('TABLE_HEADING_CASTINGCOST', 'Casting Cost');
define('TABLE_HEADING_RARITY', 'Rarity');
**2. in /main_template_vars.php find the part that adds a column and add it **
'TABLE_HEADING_EDITION' => TABLE_HEADING_EDITION,
in the switch section:
case 'PRODUCT_LIST_EDITION':
$select_column_list .= 'p.products_edition, ';
break;
**3. in the product listing you use... add this **
case 'PRODUCT_LIST_EDITION':
$lc_text = TABLE_HEADING_EDITION;
$lc_align = 'left';
$zc_col_count_description++;
break;
and then finally under...
for ($col=0, $n=sizeof($column_list); $col<$n; $col++) {
$lc_align = '';
switch ($column_list[$col]) {
case 'PRODUCT_LIST_EDITION':
$lc_align = 'left';
$lc_text = ' '.$listing->fields['products_edition'];
break;
4. Run SQL to add values to configuration table!!:
insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description,
configuration_group_id, sort_order, date_added ) values (
'Display Product Edition', 'PRODUCT_LIST_EDITION, '4', 'Do you want to display the Product Edition?', 8, 5, now());
after all this you should have a new column created and the new field data loaded.
I had everything set up but forgot about the configuration double facepalm.
the shop I'm working on now...
http://outcast.cz/