PDA

View Full Version : Store Feedback v2.0



michael_s
04-25-2016, 12:20 PM
[EN]
When someone writes an feedback must leave a warning on the admin. Does not come out because it is not the code.

In catalog/admin/includes/header.php

Find:

if ($messageStack-_size _ 0) {
echo $messageStack-_output();
}


Add above it:

// BOF feedback Warning
$feedbackQuery=tep_db_query("SELECT * FROM " . TABLE_FEEDBACK . " WHERE feedback_status=false");
while($feedback=tep_db_fetch_array($feedbackQuery) ) {
$feedback['feedback_id'];
}
if ((tep_db_num_rows($feedbackQuery)==1) && tep_session_is_registered('admin')) {
$messageStack-_add(WARNING_FEEDBACK, 'warning');
}
// EOF feedback Warning


Complete package with fix included



[ES]
Cuando alguien escribe una valoración debe salir una avertencia en el admin. No sale porque no está el código.

En catalog/admin/includes/header.php

Buscar:

if ($messageStack-_size _ 0) {
echo $messageStack-_output();
}


Añadir antes esto:

// BOF feedback Warning
$feedbackQuery=tep_db_query("SELECT * FROM " . TABLE_FEEDBACK . " WHERE feedback_status=false");
while($feedback=tep_db_fetch_array($feedbackQuery) ) {
$feedback['feedback_id'];
}
if ((tep_db_num_rows($feedbackQuery)==1) && tep_session_is_registered('admin')) {
$messageStack-_add(WARNING_FEEDBACK, 'warning');
}
// EOF feedback Warning


Paquete completo con corrección incluida

More... (http://addons.oscommerce.com/info/9357)