
Originally Posted by
neparker
I was just saying that either code I get an error:
I am using the original code as suggested in the installation read me files:
<!--bof Wishlist button -->
<!--<br class="clearBoth" />
optional depending where the code is added-->
<?php if (UN_MODULE_WISHLISTS_ENABLED) {
if ( $_SESSION['customer_id'] ) {
echo '<div id="productWishlistLink" class="buttonRow back">';
echo zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT, 'name="wishlist" value="yes"');
echo '</div>';
} else {
echo '<div>';
echo UN_BOX_WISHLIST_LOGIN_TEXT;
echo '</div>';
}
} else {}
?>
<!--eof Wishlist button -->
and when I use the above code, which is what I should be using, I get the following error:
1054 Unknown column 'attributes' in 'field list'
in:
[INSERT INTO un_products_to_wishlists ( `products_id`, `un_wishlists_id`, `created`, `modified`, `quantity`, `priority`, `comment`, `attributes` ) VALUES ( '5769', '1', NOW(), NOW(), '1', '2', '', 'a:1:{i:1;s:1:"1";}' )]
I am thinking the error is the unknown column attributes in the field list. Whatever or however I fix that.
alright here is another thought...I have combed thru the read me and can't find where it tells you that code you are using---either one.
but I did see that for that file you need to insert this code to get the button to appear on the product page
Code:
<!--bof Wishlist button -->
<?php if (UN_MODULE_WISHLISTS_ENABLED) { ?>
<div id="productWishlistLink" class="buttonRow back"><?php 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') . '">' . zen_image_button(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT) . '</a>'); ?></div>
<?php }
else
{}
?>
<!--eof Wishlist button -->
it is different from what you have written down too.
This is the actual code from the example file found in the zip of installation