the_el_man Posted January 30, 2012 Share Posted January 30, 2012 I would like to add a message about a product on the send to a friend module. Is there a way to do this? I have searched but came up blank, Thanks Link to comment Share on other sites More sharing options...
CartExpert.net Posted January 31, 2012 Share Posted January 31, 2012 Hello, If you want to add a completely new text about every product you will need to change first of all the product_lang table and add a new column to it, change AdminProducts.php and add the new property to the Products.php class. Then change the file sendtoafriend.php and include the new property of the class in the templateVars array. At last add the element to the mail file. If it is enough to add the short description of the product, add "{short_description}" => $product->description_short to templateVars and place {short_description} in the mail file to the appropiate place. Link to comment Share on other sites More sharing options...
sebkos Posted January 31, 2012 Share Posted January 31, 2012 Hi, I suppose the_el_man want to place input or textarea into sendtofriend module form. If I'm right let us know or find productquestion module because that's the same module with different mail function configuration. Link to comment Share on other sites More sharing options...
the_el_man Posted January 31, 2012 Author Share Posted January 31, 2012 Hi, I suppose the_el_man want to place input or textarea into sendtofriend module form. If I'm right let us know or find productquestion module because that's the same module with different mail function configuration. Yes this is correct. E.g. Click on "send to a friend" then write "hey XXX, check out this in black" or whatever. Does productquestion module do this then? or is there another? Link to comment Share on other sites More sharing options...
sebkos Posted January 31, 2012 Share Posted January 31, 2012 Hi again, productquestion is very common to sendtofriend module, but in the first one you put your own e-mail and name in second one e-mail and name of your friend. Anyway, you have to put in sendtofriend.tpl something like this: <p class="textarea"> <label for="message">{l s='Message'}</label> <textarea id="message" name="message">{if isset($message)}{$message|escape:'htmlall':'UTF-8'|stripslashes}{/if}</textarea> </p> Then go to sendtofriend.php and find e-mail generation section and add to template vars: '{message}' => ($_POST['message']) Edit your mail template in modules\sendtofriend\mails\ and add {message} in place you want. Let me know if it works. Link to comment Share on other sites More sharing options...
ChristopherH Posted January 4, 2013 Share Posted January 4, 2013 Did this work? I would like to do this as well as some other changes that I mention here http://www.prestashop.com/forums/topic/214006-changes-to-send-to-a-friend/page__p__1056372#entry1056372 I would think that in its current format, this module may be breaking spam laws in some counties as it doesn't include details of the original sender. Link to comment Share on other sites More sharing options...
jonah2494 Posted February 11, 2013 Share Posted February 11, 2013 Hi Guys, I've been looking at this module as a sales enquiry form instead of a send to a friend module. Is there any way I could send to the sales team email address instead of it sending to a friend email?? any help in this would be most appreciated. Kind Regards Dean Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now