wabbit Posted October 18, 2007 Share Posted October 18, 2007 When someone orders a product there is a mail send to him. The problem is that this email is send to the custimor only. Not to the shop owner, anyone an idea to fix this? Link to comment Share on other sites More sharing options...
Gauravs Posted October 18, 2007 Share Posted October 18, 2007 In admin -> My Store - Set "Send extra order emails to " the address you wish to get email on. cheers GS Best Regards,Gaurav Link to comment Share on other sites More sharing options...
wabbit Posted October 18, 2007 Author Share Posted October 18, 2007 Thanks mate, Fixed BTW it will send a complete new email, or just CC the first one? Link to comment Share on other sites More sharing options...
Gauravs Posted October 18, 2007 Share Posted October 18, 2007 CC cheers GS Best Regards,Gaurav Link to comment Share on other sites More sharing options...
wabbit Posted October 18, 2007 Author Share Posted October 18, 2007 Ok, and can i change the layout of the "Send Extra Order Emails To" email to? This because the first email goes to the custimor and the second goes to the shop owner. The second email should look a bit like account_history_info.php. Thanks in advance, (I don't know if this is possible) Cheers, Wab Link to comment Share on other sites More sharing options...
Gauravs Posted October 18, 2007 Share Posted October 18, 2007 You would have to write your own code for that, can be done, but not within the admin section. Fairly easy to do if you are familiar with php (mail) functions, but not a wysiwyg option in existing framework. cheers GS Best Regards,Gaurav Link to comment Share on other sites More sharing options...
wabbit Posted October 18, 2007 Author Share Posted October 18, 2007 Ok and will this be done the same way as the first email layout is set up? Link to comment Share on other sites More sharing options...
Gauravs Posted October 18, 2007 Share Posted October 18, 2007 Checkout.php has the order email information as shown in code below $email_order .= EMAIL_TEXT_PRODUCTS . "\n" . EMAIL_SEPARATOR . "\n" . $products_ordered . EMAIL_SEPARATOR . "\n"; for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) { $email_order .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "\n"; } if ($order->content_type != 'virtual') { $email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" . EMAIL_SEPARATOR . "\n" . tep_address_label($customer_id, $sendto, 0, '', "\n") . "\n"; } $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" . EMAIL_SEPARATOR . "\n" . tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n"; if (is_object($$payment)) { $email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" . EMAIL_SEPARATOR . "\n"; $payment_class = $$payment; $email_order .= $order->info['payment_method'] . "\n\n"; if ($payment_class->email_footer) { $email_order .= $payment_class->email_footer . "\n\n"; } } tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); // send emails to other people if (SEND_EXTRA_ORDER_EMAILS_TO != '') { tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } As you can see, all information / layout is defined as shown in code above and second portion (send_extra_order ) emails.. the same layout that is generated for customer. if you want a customized email to store owner, you would have to replicate the code with your layout for section if (SEND_EXTRA_ORDER_EMAILS_TO != '') { tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } Best Regards,Gaurav Link to comment Share on other sites More sharing options...
wabbit Posted October 18, 2007 Author Share Posted October 18, 2007 OK thanks, its fixed Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.