Adding a message text area to tell-a-friend...
I'm trying to add a text area into tell-a-friend, where the customer can
write a message for the person which receives the email. Without any luck, by the way... I'm looking for something simular like this: http://www.cartmods.com/product.php?productid=94 I copied the messagebox from the contact-us form into the tell-a-friend form. I did the same for the email template. The tell-a-friend form looks fine and seems to work also. But in the email that has been send out, the message part is missing... Here are the 2 template's i "modified". customer/main/send_to_friend.tpl Code:
{* $Id: send_to_friend.tpl,v 1.6 2004/06/24 06:04:34 max Exp $ *} mail/html/send2friend.tpl Code:
{* $Id: send2friend.tpl,v 1.2.2.1 2004/10/21 07:51:07 max Exp $ *} I'm sure i'm doing something stupid, therefore i hope somebody can point me in the right direction. And if possible; also show me how to add a friend's name field into tell-a-friend. Many, many thanks in advance!! |
heres the one that I did in 4.0.9
skin1/customer/main/send_to_friend.tpl Code:
{* $Id: send_to_friend.tpl,v 1.6.2.2 2004/12/10 13:14:52 max Exp $ *} skin1/mail/html/sendtofriend.tpl Code:
{* $Id: send2friend.tpl,v 1.2.2.1 2004/10/21 07:51:07 max Exp $ *} send_to_friend.php Code:
# |
Thanks for the reply, Shan!!
But unfortunaly it doesn't work for me... I copied your two tpl's exactly but strange enough a message won't show up in the email. Any idea why it doesn't work with me? And thanks again for trying to help! :D |
as this info is stored in an array you can add extra fields to the form and then just use the field name to display it.
i created my mod as a pop up window for the site I worked on but what i posted should be about right. ill have a look see |
Thanks for the quick reply, Shan!
If I understand it right I can use every name for a field? And when I put that name in the email tpl it will show up in the tell-a-friend email? I'm looking forward for any advise/solutions from you. Thanks again! :D |
sorry forgot to add my send_to_friend.php file where the extra msg field gets assigned to smarty
i edited the post above |
Wonderful - that did the trick!! :D :D :D
Many, many thanks for that, Shan! |
Wow thanks for this - I have added this to our cart.
|
Where the send_to_friend.php should be?
Shan,
Where should I put the send_to_friend.php file? Thanks a lot. ~~~~~~~~~ Version 4.0.9 |
Re: Where the send_to_friend.php should be?
Quote:
This should overwrite the current send_to_friend.php file that already exists in the xcart root filr area. |
All times are GMT -8. The time now is 08:47 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.