Forums / Basic Configuration / Tell a Friend Button

Tell a Friend Button

Locked

Started by goosedesign on 1 May 2008, 11:34 AM · Views: 2,686

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
1 May 2008, 11:34 AM
#1
goosedesign avatar

goosedesign

New Zenner

Join Date:
Feb 2008
Location:
UK
Posts:
39
Plugin Contributions:
0

Tell a Friend Button

Hello,

I'd really like to display 'Tell a Friend' just as a button, rather than the whole box etc. The code I'm using is

	<!--bof Tell a Friend button -->
    <?php
		
	  echo '<a href="' . zen_href_link(FILENAME_TELL_A_FRIEND, zen_get_all_get_params(array('action', 'products_id')) . 'products_id='.(int)$_GET['products_id'].'&action=tell_a_friend') . '" style="float:left;">' . zen_image_submit(BUTTON_IMAGE_TELL_A_FRIEND , BUTTON_TELL_A_FRIEND_ALT) . '</a>'."\n"; 
	?>
	<!--eof Tell a Friend button -->

It all displays fine, and works perfectly in Firefox and Safari on my mac, BUT, in IE6, clicking the button adds the product to the shopping cart instead. I can't understand the discrepancy, as surely it is server side code?!?

I actually had the same problem with the wish list module, although that also did it in Safari.

Any insights? :dontgetit

1 May 2008, 12:16 PM
#2
goosedesign avatar

goosedesign

New Zenner

Join Date:
Feb 2008
Location:
UK
Posts:
39
Plugin Contributions:
0

Re: Tell a Friend Button

Doh! This is because my button is in the product_info_display.php page and part of a form whose job it is to add stuff to the cart. Is there either different code I could paste in there, or code I could add to whatever file handles that form, so it can also handle tell a friend? I just don't want it to be in a side box.

1 May 2008, 12:24 PM
#3
goosedesign avatar

goosedesign

New Zenner

Join Date:
Feb 2008
Location:
UK
Posts:
39
Plugin Contributions:
0

Re: Tell a Friend Button

Sorted - silly, silly - I put the button in as part of the form using zen_image_submit, instead of just as a link using zen_image_button. :bigups:

9 May 2008, 6:05 AM
#4
tarynhipp avatar

tarynhipp

New Zenner

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

Re: Tell a Friend Button

is it possible to permit people to use the "tell a friend" link without having to create an account or log into their account?

9 May 2008, 6:34 AM
#5
goosedesign avatar

goosedesign

New Zenner

Join Date:
Feb 2008
Location:
UK
Posts:
39
Plugin Contributions:
0

Re: Tell a Friend Button

tarynhipp:

is it possible to permit people to use the "tell a friend" link without having to create an account or log into their account?

Yes it is:

'configuration' > 'email options' > 'allow guest to tell a friend'

It is set to false by default for SPAM prevention.

10 May 2008, 7:32 PM
#6
tarynhipp avatar

tarynhipp

New Zenner

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

Re: Tell a Friend Button

that's great! thank you so much.