View Single Post
  #5  
Old 10-29-2002, 01:00 PM
 
TeeJay TeeJay is offline
 

Advanced Member
  
Join Date: Oct 2002
Location: UK
Posts: 85
 

Default Somebody missed the point of the original request

The original question was not as easily answered as the response here suggests.
I asked how to alter the scripts so that the order confirmation email sent to a provider in x-cart pro does not put the customers email address in the from field.
I want it to put the shop owner email address there instead.
The answer that I have already had from tech support is:
"Actually, from field in email which is sent to provider is filled by customer’s e-mail.
Emailing is formed in function func_place_order in file <xcart_dir>/include/func.php. You need to find line
# Mail template processing
#
and then you need to work with code
if ((!$single_mode) and ($current_order["provider"])) {
$pr_query = "SELECT email FROM $sql_tbl[customers] WHERE login='$current_order[provider]'";
$pr_result = func_query_first ($pr_query);
$prov_email = $pr_result ["email"];

func_send_mail($prov_email, "mail/order_notification_subj.tpl", "mail/order_notification.tpl", $userinfo["email"], true);
} else {
$providers = array();
foreach($products as $product) {
$pr_result = func_query_first("select email from $sql_tbl[customers] where login='$product[provider]'");
$providers[] = $pr_result["email"];
}

$providers = array_unique($providers);

foreach($providers as $prov_email)
func_send_mail($prov_email, "mail/order_notification_subj.tpl", "mail/order_notification.tpl", $userinfo["email"], true);
} "

Which to be honest is meaningless to me
I am not a programmer, I am an end user, and can only sort out the most basic of things when it comes to altering scripts.

I had checked through the entire forum for a post relating to this subject.
Needless to say there isn't one (unless you know differently of course).

A forum is for people of lesser experience to learn from people with greater knowledge, and that includes the use of forums which may not be structured intuitively for new visitors.
I have moderated on many forums myself, and have come to learn that there are certain aspects which "go with the position" one of them being new users who do not know the rules, the other being repeated questions on the same topic.
If you ever manage to eliminate them, please let me know and I'll sell the knowledge for a small fortune to every forum on the internet.
Reply With Quote