Shopsystem ShopPilot
ShopPilot => ShopPilot Enterprise => Thema gestartet von: Joachim am Dezember 08, 2009, 16:06:56
-
Hallo,
die Funktion "Zuletzt gesehen" im Style-Shop ist ja ganz nett, aber auch dort landet der zuletzt gesehene Artikel, wie an der Rootline zu sehen ist, nicht in der Kategorie aus der er stammt.
Mir fehlt schlicht das Wissen, um anzupassen.
Darf ich um Hilfe hoffen, so daß auch andere Kollegen davon profitieren können?
-
Hallo Joachim,
Das geht genauso, wie bei den Topsellern ;)
hier mal ein Beispiel für die lastseen.txt
<!--spmacro:module(show)
# Größe Artikelbilder verändern
sub img {
my $index = $_[0];
my $anzahl = $_[1];
my $path = $ssp::catalog_abs;
my $itemid = ssp::get_var_article('itemid',$index);
if ($index <= $anzahl) {
my $pic = ssp::get_var_article('iimage',$index); my $seite = ssp::get_var_article('ipagenr', $index);
main::mprint('<a href="__show::link__"><img border="1px solid black" width="27px" src="' . $path . '/' . $pic . '"></a>');
}
}
sub link {
my $index = shift;
my $anzahl = shift;
if ($index <= $anzahl) {
my $seite = ssp::get_var_article('ipagenr', $index);
my $itemid = ssp::get_var_article('itemid', $index);
main::mprint(qq|__xxpath__?showd$seite!0,$ssp::xxsession,$itemid|);
}
return "noinc";
}
sub textlink {
my $index = shift;
my $anzahl = shift;
if ($index <= $anzahl) {
my $seite = ssp::get_var_article('ipagenr', $index);
my $itemid = ssp::get_var_article('itemid', $index);
main::mprint(qq|__xxpath__?showd$seite!0,$ssp::xxsession,$itemid|);
}
return "noinc";
}
-->
<div class="shopbox">
<div class="box-header">Zuletzt angesehen</div>
<div class="box-content">
<table>
<!--spmacro:loopitem-->
<tr>
<td rowspan="3">__show::img__</td>
<td></td>
</tr>
<tr>
<td valign="top"><a href="__show::textlink__"><b>__produkt__</b></a></td>
</tr>
<tr>
<td valign="top" nowrap><i>__preis__</i></td>
</tr>
<!--spmacro:enditem-->
</table>
</div>
</div>