Forums / All Other Contributions/Addons / Wishlist Contribution vs Image Handler 2

Wishlist Contribution vs Image Handler 2

Started by glasshoppah on 16 Jun 2006, 2:02 AM · Views: 6,546

Results 1 to 12 of 12
16 Jun 2006, 2:02 AM
#1
glasshoppah avatar

glasshoppah

New Zenner

Join Date:
Apr 2006
Location:
Kaneohe, Hawaii USA
Posts:
15
Plugin Contributions:
0

Wishlist Contribution vs Image Handler 2

or vice versa... anyhow

Heya,
I have two totally different questions, but they are intertwined--hoping this is the right spot to post them together as such.

Will IH2 watermark the images displayed in the wishlist contribution pages? If so, could someone explain how...?

If not, does anyone have any suggestions on how best to integrate it to cover the wishlist images?

And lastly, I've read over every topic on the subject, but I was able to modify and get the wishlist contrib, working on 1.3.0.1. The only glitch I am having is that html email looks contains this: (and without a link)

$EMAIL_MESSAGE_HTML

and the admin text email copy insists on puking out the session id. I've gone through every post/thread I could find on the matter, and none of those seem to resolve the issue. Any ideas?

The wishlist contrib isn't active on the site, but I don't think this is something you would need to see, as it generates no true error, other than than the glitches above. Overall, both work great except for those minor issues.

Thanks in advance,
-Christine

808's ZenCart: http://808StockPhoto.com/gallery/
Royalty Free Stock Photos at 808 Stock Photography: http://808StockPhoto.com/

18 Jun 2006, 8:13 PM
#2
glasshoppah avatar

glasshoppah

New Zenner

Join Date:
Apr 2006
Location:
Kaneohe, Hawaii USA
Posts:
15
Plugin Contributions:
0

Re: Wishlist Contribution vs Image Handler 2

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

<?php echo zen_image(DIR_WS_IMAGES . $products->fields['products_image'], $products->fields['products_name'], '', '', 'class="productlist"'); ?>

Replace with: (modify SMALL to desired size):

<?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:

<?php echo zen_image(DIR_WS_IMAGES . $products->fields['products_image'], $products->fields['products_name'],  '', '', 'class="productlist"'); ?>

and replace with:

<?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:

<?php echo zen_draw_textarea_field('message', 'soft', 40, 8, sprintf(FORM_DEFAULT_BODY, STORE_NAME, $from_name)); ?> 

and replace with:

<?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):

$email_body .= sprintf(TEXT_EMAIL_LINK, $from_name,  zen_href_link(UN_FILENAME_LIGHTBOX_FIND, 'wid=' . $id));

with:

$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

808's ZenCart: http://808StockPhoto.com/gallery/
Royalty Free Stock Photos at 808 Stock Photography: http://808StockPhoto.com/

9 Nov 2006, 12:48 AM
#3
alik avatar

alik

Zen Follower

Join Date:
Mar 2006
Posts:
126
Plugin Contributions:
0

Re: Wishlist Contribution vs Image Handler 2

Installed mine on 1.3.6 and got the images working with IH2, but the email is still containing the following :

e-mail to customer:
$EMAIL_MESSAGE_HTML

and copy email to admin shows details in email
UN_FILENAME_LIGHTBOX_FIND in the link (can't find the difine for it)

and at bottom

Email: [email protected]
OFFICE_LOGGIN_EMAIL [email protected]

not sure why the second line ?

13 Dec 2006, 8:24 PM
#4
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
732
Plugin Contributions:
0

Re: Wishlist Contribution vs Image Handler 2

I too am still getting the "$EMAIL_MESSAGE_HTML" and nothing else in my emails that are sent. I applied the code changes that were dictated in this thread (minus the image handler one). Still nothing. Any ideas?

I am running 1.3.5. Everything else about this module works, except that my HTML email messages that are sent to a friend only contain:

So-And_So's Wish List at MJM Magic
$EMAIL_MESSAGE_HTML

  • Jeff
19 Jan 2007, 3:39 AM
#5
tcustomgolf avatar

tcustomgolf

Inactive

Join Date:
Dec 2005
Location:
NY
Posts:
162
Plugin Contributions:
0

Re: Wishlist Contribution vs Image Handler 2

Jeff,

Have you tried this post by Alik??

http://www.zen-cart.com/forum/showthread.php?t=51554&highlight=wishlist

Seems to have worked for me, need to get my logo to show, and the links don't appear as url's that you can click. Let me know if you have any luck with it..

Custom Golf Clubs - A ZenCart Site!
Get fitted online for a better game!

29 Jan 2008, 12:08 AM
#6
doodlebuckets avatar

doodlebuckets

Totally Zenned

Join Date:
Jul 2005
Posts:
497
Plugin Contributions:
0

Re: Wishlist Contribution vs Image Handler 2

[quote=GlassHoppah;218411]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:/quote]

Christine, thanks so much for the fixes! :clap: I had decided not to use the Wishlist until you made the image fixes :) I am having email issues with it and was wondering if you might know what is going on. When I use the Tell A Friend about the wishlist on my site http://www.giftsofcharacter.com, I get emails that are text-only even though I admin emails set to come in HTML. In my site http://www.doodlebuckets.com, I get an email with the wishlist in HTML and it looks great but the admin [Tell a Friend}, although it comes in HTML, only has as its text $EMAIL_MESSAGE_HTML MY admin/email options settings for the two sites are identical and the mod files are identical. What could be happening, do you think? I am not a coder, so I have piddled and piddled, but can't figure out what is wrong. Please help!
Amy

29 Jan 2008, 4:37 AM
#7
doodlebuckets avatar

doodlebuckets

Totally Zenned

Join Date:
Jul 2005
Posts:
497
Plugin Contributions:
0

Re: Wishlist Contribution vs Image Handler 2

tcustomgolf:

Jeff,

Have you tried this post by Alik??

http://www.zen-cart.com/forum/showthread.php?t=51554&highlight=wishlist

Seems to have worked for me, need to get my logo to show, and the links don't appear as url's that you can click. Let me know if you have any luck with it..

Didn't work for me...

3 Apr 2009, 1:01 AM
#8
fite_commander avatar

fite_commander

New Zenner

Join Date:
Mar 2009
Posts:
2
Plugin Contributions:
0

Re: Wishlist Contribution vs Image Handler 2

I am new to this wishlist how would i create new tables. It reads -----[ 1. Create tables ]----------------------------------------------------

Create tables 'un_wishlists' and 'un_products_to_wishlists' using 'un_wishlist.sql'. Important: If in your implementation of ZenCart you defined a database table prefix (see file "includes/configure.php", line 52), add that prefix to the table names in the sql file ("un_wishlist.sql", lines 9, 10, 28 and 29).

26 Mar 2010, 3:07 PM
#9
friedrich72 avatar

friedrich72

New Zenner

Join Date:
May 2009
Location:
Kansas
Posts:
39
Plugin Contributions:
0

Re: Wishlist Contribution vs Image Handler 2

In response to the email issue: when sending wishlist to a friend-- the link in the email that takes the friend to the wishlist results in a Page Error.

Solution is found in /includes/modules/pages/un_wishlist_email/header.php

Around line 51 change:
$email_body .= sprintf(TEXT_EMAIL_LINK, $from_name, zen_href_link(UN_FILENAME_LIGHTBOX_FIND, 'wid=' . $id, 'NONSSL', false));

To:
$email_body .= sprintf(TEXT_EMAIL_LINK, $from_name, zen_href_link(UN_FILENAME_WISHLIST_FIND, 'wid=' . $id, 'NONSSL', false));

This is a great mod and I'm happy to have it working fully now. I'm not a programmer and it took a day and a half of tweeking. You may be better off buying the other one mentioned in these contribution threads for 50.

12 Oct 2010, 10:38 AM
#10
aozhaver avatar

aozhaver

Zen Follower

Join Date:
Sep 2010
Posts:
121
Plugin Contributions:
0

Re: Wishlist Contribution vs Image Handler 2

Your'e a STAR Glass!! Those Wishlist images were HUGE now its all good, cheers :clap:

Silver Jewellery

RESPECT to the Zen Cart Team, I'm PERFECTLY Zenned!

16 Mar 2011, 12:24 AM
#11
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Wishlist Contribution vs Image Handler 2

GlassHoppah:

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

<?php echo zen_image(DIR_WS_IMAGES . $products->fields['products_image'], $products->fields['products_name'], '', '', 'class="productlist"'); ?>
> ```
<?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:
> ```
<?php echo zen_image(DIR_WS_IMAGES .  $products->fields['products_image'],  $products->fields['products_name'],  '', '', 'class="productlist"');  ?>

and replace with:

<?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:
> ```
<?php echo zen_draw_textarea_field('message', 'soft', 40, 8,  sprintf(FORM_DEFAULT_BODY, STORE_NAME, $from_name)); ?> 
```and  replace with: 
> ```
<?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): 
> ```
$email_body .= sprintf(TEXT_EMAIL_LINK, $from_name,  zen_href_link(UN_FILENAME_LIGHTBOX_FIND, 'wid=' . $id));
```with:
> ```
$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?
16 Mar 2011, 12:48 AM
#12
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

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