Jump to content

Changing Tell a Friend


Tuba

Recommended Posts

I am attempting to change the "Tell a Friend" to "Enquire about this item" so that the form goes to the stores owner. It leads me to two points:

1. On the product page e.g. http://coventrymotorcycles-co-uk.cherry.pr...amp;productId=6 on my developing site how can I change the "Tell a Friend" hyperlink wording to say "Enquire about this item".

2. Based on another forum Item I have modified some of the details on the "Tell a Friend" hyperlinked page e.g. http://coventrymotorcycles-co-uk.cherry.pr...amp;productId=6 by on the page:

language/en/lang.inc.php changing some of the code below the code: $lang['front']['tellafriend'] = array( on line 1891

I would like to pre-load "Friends name and address" with the stores name and email address? does anyone know how i can do this. -uk.cherry.predns.net/bikes/index.php?act=taf&productId=6

I am not a php programmer so please assume I know little.

Link to comment
Share on other sites

I suppose in:

\includes\content\tellafriend.inc.php at about line 86, change:

array($_POST['recipEmail'])

to:

$config['masterEmail']

Line 62: remove " || empty($_POST['recipName'])" as you won't be needing it.

Line 67: remove " || validateEmail($_POST['recipEmail'])==FALSE" as you won't be needing it.

You can leave lines 121 and 123 alone as you will change what they say in your language file.

Then, in:

/skins/Your_Skin/styleTemplates/content/tellafriend.tpl at about lines 12-19:

delete those lines as you won't be needing them.

I haven't tried this myself.

Link to comment
Share on other sites

Hi, I have made the changes you suggested but when I click on Tell a Friend" on page http://coventrymotorcycles-co-uk.cherry.pr...amp;productId=6 , I get this message: Parse error: syntax error, unexpected ',' in E:\Domains\coventrymotorcycles.co.uk\wwwroot\bikes\includes\content\tellafriend.inc.php on line 85

Since I have no knowledge of php can you please suggest wghat is wrong.

Link to comment
Share on other sites

The line should now be:

$send = $mail->send($config['masterEmail'], $config['mailMethod']);

How did your original line read and how does it read now?

If that still doesn't work, try:

$send = $mail->send(array($config['masterEmail']), $config['mailMethod']);

Link to comment
Share on other sites

Thanks for your help the first option did not work but the second one did i.e.:

$send = $mail->send(array($config['masterEmail']), $config['mailMethod']);

Iwonder if you can help me with one other item that was on my original topic namely how do change the wording of the hyperlink on bottom of the page:

http://coventrymotorcycles-co-uk.cherry.pr...amp;productId=6

From "Tell a Friend" to "Enquire about this item"

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...