| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Adding a message text area to tell-a-friend... | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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:
mail/html/send2friend.tpl Code:
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!!
__________________
X-Cart 4.0.12 Heavy modified with paid, free and forum mods. PHP 5.2.5 | MYSQL 5.0.51a |
|||||||
#2
|
|||||||||
|
|||||||||
heres the one that I did in 4.0.9
skin1/customer/main/send_to_friend.tpl Code:
skin1/mail/html/sendtofriend.tpl Code:
send_to_friend.php Code:
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#3
|
|||||||
|
|||||||
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!
__________________
X-Cart 4.0.12 Heavy modified with paid, free and forum mods. PHP 5.2.5 | MYSQL 5.0.51a |
|||||||
#4
|
|||||||||
|
|||||||||
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
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#5
|
|||||||
|
|||||||
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!
__________________
X-Cart 4.0.12 Heavy modified with paid, free and forum mods. PHP 5.2.5 | MYSQL 5.0.51a |
|||||||
#6
|
|||||||||
|
|||||||||
sorry forgot to add my send_to_friend.php file where the extra msg field gets assigned to smarty
i edited the post above
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#7
|
|||||||
|
|||||||
Wonderful - that did the trick!!
Many, many thanks for that, Shan!
__________________
X-Cart 4.0.12 Heavy modified with paid, free and forum mods. PHP 5.2.5 | MYSQL 5.0.51a |
|||||||
#8
|
|||||||
|
|||||||
Wow thanks for this - I have added this to our cart.
__________________
Cheers from Melanie ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Xcart V4.0.4 (Unix) - LIVE AOM, Fancy Categories Marketing Manager, Reward Points & Refer Rewards Advanced Site Map Easy Checkout Gift & Homeware House www.giftandhomewarehouse.com.au |
|||||||
#9
|
|||||||
|
|||||||
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
__________________
version 4.1.1 |
|||||||
#10
|
|||||||
|
|||||||
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.
__________________
vs 4.1.12 |
|||||||
|
|||
X-Cart forums © 2001-2020
|