Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

send_to_friend feature to be a request additional info

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 06-29-2007, 06:27 AM
 
Jerrad Jerrad is offline
 

X-Adept
  
Join Date: Nov 2004
Location: The Netherlands
Posts: 484
 

Default 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...

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
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
Reply With Quote
  #12  
Old 07-02-2007, 04:35 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,470
 

Default 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
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #13  
Old 07-02-2007, 04:53 AM
 
Jerrad Jerrad is offline
 

X-Adept
  
Join Date: Nov 2004
Location: The Netherlands
Posts: 484
 

Default 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...
Thanks again for trying to help!

Jerrad
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
Reply With Quote
  #14  
Old 08-18-2007, 06:02 PM
 
junaid junaid is offline
 

Advanced Member
  
Join Date: Dec 2003
Posts: 96
 

Default 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.
__________________
xcart 4.18 on linux
Reply With Quote
  #15  
Old 08-19-2007, 01:51 AM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default 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...
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
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:07 PM.

   

 
X-Cart forums © 2001-2020