Jump to content
xt:Commerce Community Forum

Meist Besuchte Artikel Reseten


Recommended Posts

  • 3 years later...

Es geht noch einfacher und das sogar mit ein Button.

Ihr müßt nur die Daten im admin/stats_products_viewed.php einfügen.

Passendem Button in admin/images/icons einfügen.

admin/stats_products_viewed.php

dies in Zeile ca. 14 einfügen

// wozu Begin

if ($HTTP_GET_VARS['action']=='reset'){

$reset_query_raw = "update " . TABLE_PRODUCTS_DESCRIPTION . " set products_viewed = '0'";

xtc_db_query($reset_query_raw);

xtc_redirect(xtc_href_link(FILENAME_STATS_PRODUCTS_VIEWED, 'reset=1'));

}

if ($HTTP_GET_VARS['reset']) {

$messageStack->add(TEXT_VIEWS_RESET, 'success');

}

// wozu End

und dies in Zeile ca. 94 einfügen

<!-- wozu Begin -->

<tr>

<td colspan="3"><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td align="center" colspan="2"><?php echo '<a href="' . xtc_href_link(FILENAME_STATS_PRODUCTS_VIEWED,"action=reset") . '">' . xtc_image(DIR_WS_ICONS.'button_reset.gif', Reset) . '</a>'; ?></td>

</tr>

</table></td>

</tr>

<!-- wozu End -->

pdfexport052.zip

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...