Ok, I finally figured it out. The below from post #949 has a bug, I think - in one piece of code you insert the new field between the name and description, and in another you insert it after them. I haven't tried messing with it to see if I can corrupt my database, but it might be important to be consistent when changing it like I did.
To add the products_id field, all I did was the below two edits out of the 10 or so.
Code:
Line 360
Original:
$filelayout = array_merge($filelayout , array(
'v_products_name_' . $l_id => $iii++,
'v_products_description_' . $l_id => $iii++,
));
Changed to:
$filelayout = array_merge($filelayout , array(
'v_products_name_' . $l_id => $iii++,
'v_new_field_' . $l_id => $iii++,
'v_products_description_' . $l_id => $iii++,
));
Line 791
Original:
$row['v_products_name_' . $lid] = $row2['products_name'];
$row['v_products_description_' . $lid] = $row2['products_description'];
if ($ep_supported_mods['psd'] == true) {
$row['v_products_short_desc_' . $lid] = $row2['products_short_desc'];
}
Changed to:
$row['v_products_name_' . $lid] = $row2['products_name'];
$row['v_products_description_' . $lid] = $row2['products_description'];
$row['v_new_field_' . $lid] = $row2['new_field'];
if ($ep_supported_mods['psd'] == true) {
$row['v_products_short_desc_' . $lid] = $row2['products_short_desc'];
}
Bookmarks