I resolved the integration issue between ZenCart v1.3.0.1, IH2, and the Wishlists contributions, the images are sized correctly to small size, the watermarks/hover are functional, the session id is no longer being attached to the url in the share wishlists email, so thought I'd share my fixes to date:
Modify line 76 in /catalogue/includes/templates/YOURTEMPLATE/templates/un_wishlist_find/tpl_un_wishlist_find_default.php
Code:
<?php echo zen_image(DIR_WS_IMAGES . $products->fields['products_image'], $products->fields['products_name'], '', '', 'class="productlist"'); ?>
Replace with: (modify SMALL to desired size):
Code:
<?php echo zen_image(DIR_WS_IMAGES . $products->fields['products_image'], $products->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'class="productlist"'); ?>
and
Modify line 93 from the original code in
/catalogue/includes/templates/YOURTEMPLATE/templates/un_wishlist/tpl_un_wishlist_default.php from this:
Code:
<?php echo zen_image(DIR_WS_IMAGES . $products->fields['products_image'], $products->fields['products_name'], '', '', 'class="productlist"'); ?>
and replace with:
Code:
<?php echo zen_image(DIR_WS_IMAGES . $products->fields['products_image'], $products->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'class="productlist"'); ?>
To repair the massive textarea and the blank message area with the "8" in the text of the share wishlists/tell a friend function of the wishlist, modify line 26 in
/catalogue/includes/templates/YOURTEMPLATE/templates/un_wishlist_email/tpl_un_wishlist_email_default.php from:
Code:
<?php echo zen_draw_textarea_field('message', 'soft', 40, 8, sprintf(FORM_DEFAULT_BODY, STORE_NAME, $from_name)); ?>
and replace with:
Code:
<?php echo zen_draw_textarea_field('message', 'soft', 9, sprintf(FORM_DEFAULT_BODY, STORE_NAME, $from_name)); ?>
To repair the session id from displaying in the wishlist tell a friend email:
Modify /catalogue/includes/modules/pages/un_wishlist_email/header_php.php (this fix is discussed in the wishlist contribution support forum)
Replace (around line 51):
Code:
$email_body .= sprintf(TEXT_EMAIL_LINK, $from_name, zen_href_link(UN_FILENAME_LIGHTBOX_FIND, 'wid=' . $id));
with:
Code:
$email_body .= sprintf(TEXT_EMAIL_LINK, $from_name, zen_href_link(UN_FILENAME_LIGHTBOX_FIND, 'wid=' . $id, 'NONSSL', false));
All in all, I've been able to successfully port the wishlist contribution to a lightbox. Since everything has attributes, the compact view does not add multiple items to the cart, so I'll be modifying that feature out.
The only lingering problem I have with the wishlist now is that the html version of the wishlist email does not link the url (it comes in the html message as plain text--no link). Can anyone tell me how to get this linked properly?
Thanks,
-Christine
Bookmarks