Tuba Posted May 1, 2008 Share Posted May 1, 2008 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. Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 2, 2008 Share Posted May 2, 2008 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. Quote Link to comment Share on other sites More sharing options...
Tuba Posted May 7, 2008 Author Share Posted May 7, 2008 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. Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 7, 2008 Share Posted May 7, 2008 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']); Quote Link to comment Share on other sites More sharing options...
Tuba Posted May 8, 2008 Author Share Posted May 8, 2008 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" Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 8, 2008 Share Posted May 8, 2008 Almost every bit of wording is taken from your language file: /language/??/lang.inc.php It's a large file, so I would use your text editor's Search to find the phrase you are looking for. Quote Link to comment Share on other sites More sharing options...
Tuba Posted May 8, 2008 Author Share Posted May 8, 2008 Hi, Thanks for your help I found the code on line: 2083. 'tellafriend' => "Tell a Friend", All is now working fine. Great support and many thanks from a php novice. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.