Risolto da me in attesa di una risposta
Soluzione:
Cercate in questo file:
/catalog/product_reviews_write.php il seguente "paragrafo":
Codice: Seleziona tutto
if ($error == false) {
tep_db_query("insert into " . TABLE_REVIEWS . " (products_id, customers_id, customers_name, reviews_rating, date_added) values ('" . (int)$HTTP_GET_VARS['products_id'] . "', '" . (int)$customer_id . "', '" . tep_db_input($customer['customers_firstname']) . ' ' . tep_db_input($customer['customers_lastname']) . "', '" . tep_db_input($rating) . "', now())");
$insert_id = tep_db_insert_id();
tep_db_query("insert into " . TABLE_REVIEWS_DESCRIPTION . " (reviews_id, languages_id, reviews_text) values ('" . (int)$insert_id . "', '" . (int)$languages_id . "', '" . tep_db_input($review) . "')");
tep_redirect(tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params(array('action'))));
}
}
e sostituitela con questo:
Codice: Seleziona tutto
if ($error == false) {
if (isset($HTTP_POST_VARS['inc_lastname']) && is_numeric($HTTP_POST_VARS['inc_lastname'])) {
tep_db_query("insert into " . TABLE_REVIEWS . " (products_id, customers_id, customers_name, reviews_rating, date_added) values ('" . (int)$HTTP_GET_VARS['products_id'] . "', '" . (int)$customer_id . "', '" . tep_db_input($customer['customers_firstname']) . ' ' . tep_db_input($customer['customers_lastname']) . "', '" . tep_db_input($rating) . "', now())");
$insert_id = tep_db_insert_id();
tep_db_query("insert into " . TABLE_REVIEWS_DESCRIPTION . " (reviews_id, languages_id, reviews_text) values ('" . (int)$insert_id . "', '" . (int)$languages_id . "', '" . tep_db_input($review) . "')");
tep_redirect(tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params(array('action'))));
} else {
tep_db_query("insert into " . TABLE_REVIEWS . " (products_id, customers_id, customers_name, reviews_rating, date_added) values ('" . (int)$HTTP_GET_VARS['products_id'] . "', '" . (int)$customer_id . "', '" . tep_db_input($customer['customers_firstname']) . ' ' . "', '" . tep_db_input($rating) . "', now())");
$insert_id = tep_db_insert_id();
tep_db_query("insert into " . TABLE_REVIEWS_DESCRIPTION . " (reviews_id, languages_id, reviews_text) values ('" . (int)$insert_id . "', '" . (int)$languages_id . "', '" . tep_db_input($review) . "')");
tep_redirect(tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params(array('action'))));
}
}
}
Poi cercate questa riga:
Codice: Seleziona tutto
<tr>
<td class="main"><?php echo '<b>' . SUB_TITLE_RATING . '</b> ' . TEXT_BAD . ' ' . tep_draw_radio_field('rating', '1') . ' ' . tep_draw_radio_field('rating', '2') . ' ' . tep_draw_radio_field('rating', '3') . ' ' . tep_draw_radio_field('rating', '4') . ' ' . tep_draw_radio_field('rating', '5') . ' ' . TEXT_GOOD; ?></td>
</tr>
e sostituitela con:
Codice: Seleziona tutto
<tr>
<td class="main"><?php echo '<b>' . SUB_TITLE_RATING . '</b> ' . TEXT_BAD . ' ' . tep_draw_radio_field('rating', '1') . ' ' . tep_draw_radio_field('rating', '2') . ' ' . tep_draw_radio_field('rating', '3') . ' ' . tep_draw_radio_field('rating', '4') . ' ' . tep_draw_radio_field('rating', '5') . ' ' . TEXT_GOOD; ?></td>
</tr>
<tr>
<td class="smallText"><?php echo tep_draw_checkbox_field('inc_lastname', '1', true) . ' ' . TEXT_INC_LASTNAME; ; ?></td>
</tr>
Chiudete e salvate.
Ora modifichate il file in
/catalog/includes/languages/italian/product_reviews_write.php
Dopo questa riga:
Codice: Seleziona tutto
define('TEXT_GOOD', '<small><font color="#ff0000"><b>OTTIMO</b></font></small>');
Aggiungete questa riga:
Codice: Seleziona tutto
define('TEXT_INC_LASTNAME', '<small><font color="#ff0000"><b>Includere il proprio Cognome sulla Recensione Pubblica</b></font></small>');
Ora per quella inglese invece modifichate il file in
/catalog/includes/languages/english/product_reviews_write.php
Dopo questa riga:
Codice: Seleziona tutto
define('TEXT_GOOD', '<small><font color="#ff0000"><b>GOOD</b></font></small>');
aggiungete questa riga:
Codice: Seleziona tutto
define('TEXT_INC_LASTNAME', '<small><font color="#ff0000"><b>Include your Last Name in the public Reviews</b></font></small>');
Ora salvate tutto e dovrebbe andare tutto a posto!