Whoops! the code would go in JenRed's contribution:
PHP Code:
// (un): start wishlist link
if ( $_SESSION['customer_id'] ) {
echo '<a href="' . zen_href_link(UN_FILENAME_WISHLIST, zen_get_all_get_params(array('action', 'products_id')) . 'products_id='.(int)$_GET['products_id'].'&action=un_add_wishlist') . '">' . UN_TEXT_ADD_WISHLIST . '</a>';
} else {
$_SESSION['navigation']->set_snapshot();
echo 'please <a href=http://WWW.YOURSITE.COM/index.php?main_page=login>log in</a><br />to add this to<br />your Wish List';
}
// (un): end wishlist link
Bookmarks