Seite 1 von 1

Text verlinken

Verfasst: 29.03.2010, 10:11
von wolfschw
Hallo

Wie kann Ich einen Text verlinken
so das dieser Link einen Artikel zur Wishlist hinzu fügt ?

gruß

Wolfgang

Verfasst: 29.03.2010, 18:28
von r23
Hallo,

im Templete

Code: Alles auswählen

<a href="{html_href_link modul=$modules.account file=$filename.account_my_wishlist action=add_wishlist products_id=$smarty.get.products_id}">der text</a>
dieser Link funktioniert allerdings nur für Kunden, die angemeldet sind.
{if (isset($smarty.session.customer_id)) }
<a href="{html_href_link modul=$modules.account file=$filename.account_my_wishlist action=add_wishlist products_id=$smarty.get.products_id}">der text</a>
[/if}

und wenn in $smarty.get.products_id eine ID steht und das Produkt über keine Produktmerkmale (optinen) verfügt.