I have created some extra fields for the product description page which are working and populating correctly.
which currently only displays '$products_Text_1' from the code below
You first state that they are working - then state that they are not????
Which one is it???
Well I can get you started
First you need to add fields to the table "product_description" for products_Text_1, products_Text_2, etc
keeping in mind that by default there is only "products_description text" present now you might change the naming convention to
something like
Code:
products_description text_1
products_description text_2
One then need to change the admin > includes > modules > update_product.php file about line 13
Code:
if (isset($_POST['edit_x']) || isset($_POST['edit_y'])) {
$action = 'new_product';
} elseif ($_POST['products_model'] . $_POST['products_url'] . $_POST['products_name'] . $_POST['products_description'] != '')
about line 112
Code:
$sql_data_array = array('products_name' => zen_db_prepare_input($_POST['products_name'][$language_id]),
'products_description' => zen_db_prepare_input($_POST['products_description'][$language_id]),
'products_url' => zen_db_prepare_input($_POST['products_url'][$language_id]));
In file admin > includes > modules > product > collect_info.php every line for "products_description" needs to be added to with your additional fields
All the above only gets it so one can enter in the admin the additional fields
I suspect that you have added the code you posted to includes/templates/your_template/templates/product_info_display.php which will also need to be altered
I may have missed some files that need alteration
Bookmarks