X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   send_to_friend feature to be a request additional info (https://forum.x-cart.com/showthread.php?t=20397)

Jerrad 06-29-2007 06:27 AM

Re: send_to_friend feature to be a request additional info
 
I'm using this great mod for a while now, but the spam bots are driving me almost crazy... 8O

That's why I want to change the emailaddress I'm using for customers requesting info, but not after I found
a way the loose/or hide the (new) emailaddress which must be used in the code of this mod:

Code:

  <FORM action="product.php" method="post" name="send">
    <INPUT type="hidden" name="mode" value="send">
    <INPUT type="hidden" name="productid" value="{$product.productid}">
    <INPUT type="hidden" name="email" id="send_to" value="info@your-email-address.com.au">
    <TR>



Anybody know a solution for this?
Thanks in advance!

Jerrad :D

chamberinternet 07-02-2007 04:35 AM

Re: send_to_friend feature to be a request additional info
 
You can always use this mod: http://www.xcartmods.co.uk/#f4

Regards

Shafiq :sK

Jerrad 07-02-2007 04:53 AM

Re: send_to_friend feature to be a request additional info
 
Thanks for the advise, shafiq!

But I think I just solved it...

I changed my emailaddress into {$config.Company.support_department}, so it looks like this:
Code:

<INPUT id="send_to" type="hidden" size="45" name="email" value="{$config.Company.support_department}">

And in send_to_friend.php I changed
Code:

func_send_mail ($email, "mail/send2friend_subj.tpl", "mail/send2friend.tpl", $from, false);

into

func_send_mail ($config["Company"]["support_department"], "mail/querysub.tpl", "mail/queryap.tpl", $from, $query, $to, false);


Info requests will now be mailed to the help/support emailadress in Admin>General Settings>Company Options.

Seems to work fine... :D
Thanks again for trying to help!

Jerrad

junaid 08-18-2007 06:02 PM

Re: send_to_friend feature to be a request additional info
 
Quote:

Originally Posted by chamberinternet
You can always use this mod: http://www.xcartmods.co.uk/#f4

Regards

Shafiq :sK


great mod shafiq...
thanks for help.

inebriate 08-19-2007 01:51 AM

Re: send_to_friend feature to be a request additional info
 
Quote:

Originally Posted by Jerrad
Thanks for the advise, shafiq!

But I think I just solved it...

I changed my emailaddress into {$config.Company.support_department}, so it looks like this:
Code:

<INPUT id="send_to" type="hidden" size="45" name="email" value="{$config.Company.support_department}">

And in send_to_friend.php I changed
Code:

func_send_mail ($email, "mail/send2friend_subj.tpl", "mail/send2friend.tpl", $from, false);

into

func_send_mail ($config["Company"]["support_department"], "mail/querysub.tpl", "mail/queryap.tpl", $from, $query, $to, false);


Info requests will now be mailed to the help/support emailadress in Admin>General Settings>Company Options.

Seems to work fine... :D
Thanks again for trying to help!

Jerrad


you should remove
Code:

<INPUT id="send_to" type="hidden" size="45" name="email" value="{$config.Company.support_department}">
no point in sending the email address to the form when its predefined


All times are GMT -8. The time now is 03:48 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.