Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: Wishlist Contribution vs Image Handler 2

    Quote Originally Posted by GlassHoppah View Post
    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"'); ?>
    I did this and it still shows the largest image, not matter what...any other ideas.

    Oh I forgot too, the second part to change is not in the file only the first part.

    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.

    Thanks,
    -Christine
    is this part to give it the lightbox effect? what is the way to get image handler 2 to work or will that work once the image goes to the small version?

  2. #12
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: Wishlist Contribution vs Image Handler 2

    forget the image problem got it to finally behave itself, thanks for the fix

    but still can not get IH2 nor lightbox effect to work with the wishlist
    Last edited by DarkAngel; 16 Mar 2011 at 01:52 AM.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Saving images with appropriate image name via Image handler
    By aquaessential in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 20 Feb 2014, 01:05 PM
  2. Why Image handler Manager shows nothing at all?(with image)
    By johnyeo90 in forum General Questions
    Replies: 0
    Last Post: 16 Aug 2012, 08:46 AM
  3. LRG Image Popup not working with/without Image Handler
    By sbbemn in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 9 Jan 2011, 07:53 AM
  4. wishlist contribution help
    By james739 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 15 Jul 2007, 06:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg