2johnsons Posted October 28, 2009 Share Posted October 28, 2009 Search engines shouldn't be able to get to the checkout shipping page so that isn't a concern. For the rest, you can create a sales rep named "No Sales Rep," or something like that so the person doesn't have to have a sales rep assigned. Otherwise, the code would have to be altered to remove the checking of the sales rep. But if you do that, you will probably get a lot of wrong selections since people will not select it and which ever rep is showing will be the one selected and that would defeat a large part of the reason of the addon. Thank you for that information. I did just what you said by creating "No Rep" which allowed me to continue processing my order. I have another question how do I go about deleting a rep or group? Thank you Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted October 28, 2009 Author Share Posted October 28, 2009 Thank you for that information. I did just what you said by creating "No Rep" which allowed me to continue processing my order. I have another question how do I go about deleting a rep or group? Thank you Click on the button named Delete for that rep or group in admin. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
adabristian Posted November 2, 2009 Share Posted November 2, 2009 If you could help me figure out what is happeneing... The sales rep ID's do not pass through to the invoice or the database. Where could I have gone wrong with the installation? Any help would be appreciated... Thank you Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted November 2, 2009 Author Share Posted November 2, 2009 If you mean when an order is made, then the problem would be in the changes made to the files on the shop side. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
adabristian Posted November 2, 2009 Share Posted November 2, 2009 That's what I figured, but would you have any idea which file would be the issue? I was thinking the orders.php file but everything looks like it does in the install file... I can't figure it out Quote Link to comment Share on other sites More sharing options...
adabristian Posted November 2, 2009 Share Posted November 2, 2009 Also remember it is not being recorded in the database sql file either Quote Link to comment Share on other sites More sharing options...
adabristian Posted November 2, 2009 Share Posted November 2, 2009 Not trying to be a bother but just wanted to say.. it is not on the invoice, packing slip in admin, so it places the order but does not show up anywhere on who the group or rep it belongs to. Tha k you for your help in this Quote Link to comment Share on other sites More sharing options...
adabristian Posted November 7, 2009 Share Posted November 7, 2009 Quick question... Will there be a salesforce contribution for the new 3.0 oscommerce? Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted November 7, 2009 Author Share Posted November 7, 2009 At some point, that will probably happen. But until a final release of V3 is made, it isn't something that I will look at, though I can't speak for others. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
adabristian Posted November 7, 2009 Share Posted November 7, 2009 Any clue as to which file is giving me that problem with not passing through the sales rep info? Sorry to bother you.. Quote Link to comment Share on other sites More sharing options...
adabristian Posted November 8, 2009 Share Posted November 8, 2009 Okay, so here is an update..i've been trying to figure hos out all week. Finally, i know what the problem is. I do not know how to fix it though!!... :'( It seems to be the issue with the fact that I am using Paypal standard checkout. I have place mock orders on my site, using paypal option and using the money order option. When the order was place with the money order option, the Rep and group info passed through to the database and therefore on to the invoice and order pages. However, the order place through paypal continued to not pass through the information on the sale rep or group, even after completing the entire checkout with a payment through paypal. I am guessing that the code does not recognize that the sale is completed because it gets passed through to paypal. So my next question for those of you in the programming world that read these posts....Please help me figure out what I need to change in order to get this to work with the paypal module... I am imagining that what needs to be done is somehow make the code so it is recognized as a completed order upon clicking on the confirm order button, or something to that nature. I only use this option(paypal) for my shopping cart.. Any help and guidance would be greatly appreciated!! :D I feel accomplished, now that I have figured out what is happening....Now, I need you all for the rest...Thank in advance!! Quote Link to comment Share on other sites More sharing options...
beemertec Posted December 29, 2009 Share Posted December 29, 2009 This is a great mod. I think I may have done something wrong. When I run the report, my commission column shows .05. Does the mod not calculate the commission for the report? Also, is there a way to make the report sortable by column, so I could sort it by Sales rep? Thanks. Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted December 29, 2009 Author Share Posted December 29, 2009 To see the commission, try this. In admin/includes/modules/sales_reports.php, at linke 176, find $rpt[$i]['group_commission'] = $sales['group_commission']; and replace it with $rpt[$i]['group_commission'] = round(($orderSubtotal * $sales['group_commission']),2); Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
beemertec Posted December 30, 2009 Share Posted December 30, 2009 yes i think should not be the order database. The strange part is that the report output sometimes 2 entries, sometimes 3 upto 6 entries and not consistent. Meaning somewhere on the query looping issue i suppose. Still trying to find out. I figured out what is happening here. I have the same issue. Each time the status of an order is updated, it duplicates the entry on the sales report. When an order is placed, I see it on the report once. When I print the packing slip I update the status of the order. Then I get a duplicate on the sales report. When I ship the package, I update status again and I have 3 duplicates on the sales report. I am guessing it has something to do with this line: TABLE_ORDERS_STATUS_HISTORY . " osh on (osh.orders_id = ot.orders_id) $where "); but I am a programming dummy, so I wouldn't quote me on that. I hope this at least points you in the right direction. Quote Link to comment Share on other sites More sharing options...
beemertec Posted December 30, 2009 Share Posted December 30, 2009 To see the commission, try this. In admin/includes/modules/sales_reports.php, at linke 176, find $rpt[$i]['group_commission'] = $sales['group_commission']; and replace it with $rpt[$i]['group_commission'] = round(($orderSubtotal * $sales['group_commission']),2); Thank you very much. That did the trick. Quote Link to comment Share on other sites More sharing options...
beemertec Posted December 30, 2009 Share Posted December 30, 2009 I am getting closer. I want a report that will only show the entries that have been shipped. In my case that is status 5. I also want it to only show orders with subtotals over $100.00. We only pay commission on orders over $100.00. In addition I did not need some of the fields. In admin/sales_reports.php, I commented out group, company, shipping, tax, and total. I only need sales rep, order, pur date, ship date, subtotal, and comm. I then commented those items out in modules/sales_reports.php. So far so good. Then I used: if (($sales['orders_status_id'] == '5') && ($orderSubtotal > '100')) $rpt[$i]['sales_rep_name'] = $sales['sales_rep_firstname'] . ' ' .$sales['sales_rep_lastname']; if (($sales['orders_status_id'] == '5') && ($orderSubtotal > '100')) $rpt[$i]['order_id'] = $sales['orders_id']; if (($sales['orders_status_id'] == '5') && ($orderSubtotal > '100')) $rpt[$i]['order_date_purchased'] = date('m/d/Y', strtotime($sales['date_purchased'])); if (($sales['orders_status_id'] == '5') && ($orderSubtotal > '100')) $rpt[$i]['order_date_shipped'] = ($sales['orders_status_id'] == 5) ? date('m/d/Y', strtotime($sales['date_added'])) : ' '; if (($sales['orders_status_id'] == '5') && ($orderSubtotal > '100')) $rpt[$i]['order_subtotal'] = $orderSubtotal; if (($sales['orders_status_id'] == '5') && ($orderSubtotal > '100')) $rpt[$i]['group_commission'] = round(($orderSubtotal * $sales['group_commission']),2); This seemed logical to me, but it results in an empty table. I also tried the if statement with brackets around the full $rpt section and got the same result. If I remove the if statement from any of the above $rpt lines, the report will pull up. It will only show the information I want. However, it has empty rows for the orders that do not meet the requirements of the if statement. This results in a table that make take up 2 pages in a .pdf and only have 1 or 2 entries. Any ideas? Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted December 30, 2009 Author Share Posted December 30, 2009 I can't help with custom coding due to the drain on my time but I can tell you that the code in the functions file builds an array in one section and then references that array elsewhere to complete the reports so it might be that you changed one and not the other. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
bhbilbao Posted January 25, 2010 Share Posted January 25, 2010 I have this working. I needed that when a customer makes an order on the shop, the confirmation email arrives to the Salesman he select before on the checkout_shiping.php Does anybody have the code for this?? Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted January 25, 2010 Author Share Posted January 25, 2010 I have this working. I needed that when a customer makes an order on the shop, the confirmation email arrives to the Salesman he select before on the checkout_shiping.php Does anybody have the code for this?? The code is already in there for doing that. You have to be sure the email address is in the salesman's file and is valid and correct, but otherwise it should work. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
bhbilbao Posted January 25, 2010 Share Posted January 25, 2010 ok. I will try again . probably I tested it inserting the same email adress for both. Thanks. Quote Link to comment Share on other sites More sharing options...
bhbilbao Posted January 28, 2010 Share Posted January 28, 2010 Other extrange bug. ¿? I renamed the groups. Then i renamed the sales persons. Now in checkout_shipping.php in the select dropdown menu the options are duplicated. why? -selectJon Maria Steve -select Jon Maria Steve Quote Link to comment Share on other sites More sharing options...
bhbilbao Posted January 28, 2010 Share Posted January 28, 2010 In 13) In catalog/account_history_info.php, <tr><td class="main"><?php echo '<b>' . HEADING_ORDER_SALES_REP . '</b> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td> </tr> I think is best to change to this: <tr><td class="main"><?php echo '<b>' . HEADING_ORDER_SALES_REP_SELECTED . '</b> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '"><span class="orderEdit"></span></a>'; ?></td> </tr> Quote Link to comment Share on other sites More sharing options...
bhbilbao Posted January 28, 2010 Share Posted January 28, 2010 My salesmen dont receive a copy of the orders. I dont know where to place the code. I used Send HTML emails with other contribs: part of code in checkout_process.php //BEGIN SEND HTML MAIL// $orders_picture_query = tep_db_query("select products_image from " . TABLE_PRODUCTS . " where products_id = '" . (int)$order->products[$i]['id'] . "'"); $orders_picture=tep_db_fetch_array($orders_picture_query); $products_ordered .= $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name'] . ' (' . $order->products[$i]['model'] . ') = ' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . $products_ordered_attributes . "\n"; // Line Added - MOD: CREDIT CLASS Gift Voucher Contribution $order_total_modules->apply_credit(); $products_quantity .= nl2br($order->products[$i]['qty'] . "\n"); $products_name .= nl2br("" . $order->products[$i]['name'] . $products_ordered_attributes ."\n"); if (!tep_not_null($order->products[$i]['model'])) { $products_model .= ''.EMAIL_NO_MODEL.'' ; } else{ $products_model .= nl2br($order->products[$i]['model'] . "\n"); }; $orderarray[$i] = array("Image" => "<img src=".HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_IMAGES . $orders_picture['products_image']." width='92px' border='0'>", "Model" => nl2br("" . $order->products[$i]['name'] . $products_ordered_attributes . "\n" ), "Modelnr"=> nl2br($order->products[$i]['model'] . "\n"), "Qty" => nl2br($order->products[$i]['qty'] . "\n"), "Unitprice" => nl2br($currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], 1) . "\n"), "Tax" => nl2br($order->products[$i]['tax'] ."\n"), "Price" => nl2br($currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . "\n")); } for ($i=0; $i<sizeof($order_totals); $i++) { $Vartaxe .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "\n"; } if ($order->content_type != 'virtual') { $Varaddress .= tep_address_label($customer_id, $sendto, 0, '', "\n") ; } if (is_object($$payment)) { $Varmodepay .= EMAIL_TEXT_PAYMENT_METHOD . "\n" . EMAIL_SEPARATOR . "\n"; $payment_class = $$payment; $Varmodpay .= $payment_class->title . "\n"; if ($payment_class->email_footer) { $Varmodpay .= $payment_class->email_footer . "\n\n"; } } $Varlogo = ''.VARLOGO.'' ; $Vartable1 = ''.VARTABLE1.'' ; $Vartable2 = ''.VARTABLE2.'' ; $Varframe1 = ''.VARFRAMEU.'' ; $Varframe2 = ''.VARFRAMED.'' ; $Vartext1 = ' <b>' . EMAIL_TEXT_DEAR . ' ' . $order->customer['firstname'] . ' ' . $order->customer['lastname'] .' </b><br>' . EMAIL_MESSAGE_GREETING ; $Vartext2 = ' ' . EMAIL_TEXT_ORDER_NUMBER . ' <STRONG> ' . $insert_id . '</STRONG><br>' . EMAIL_TEXT_DATE_ORDERED . ': <strong>' . strftime(DATE_FORMAT_LONG) . '</strong><br>' . TLF . ': <strong>' . $order->customer['telephone'] . '</strong><br> -<a href="' . HTTP_SERVER . DIR_WS_CATALOG . 'account_history_info.php?order_id=' . $insert_id .'">' . EMAIL_TEXT_INVOICE_URL . '</a>' ; $Varmailfooter = ''.VARMAILFOOTER.'' ; $VarArticles= ''.EMAIL_TEXT_PRODUCTS_ARTICLES.'' ; $VarModele= ''.EMAIL_TEXT_PRODUCTS_MODELE.'' ; $VarQte= ''.EMAIL_TEXT_PRODUCTS_QTY .'' ; $VarTotal= ''.EMAIL_TEXT_TOTAL.'' ; $VarAddresship = ''.EMAIL_TEXT_DELIVERY_ADDRESS.'' ; $VarAddressbill = ''.EMAIL_TEXT_BILLING_ADDRESS.'' ; $Varmetodpaye = ''.EMAIL_TEXT_PAYMENT_METHOD.'' ; $Vardetail = ''.DETAIL .'' ; $Varhttp = ''.VARHTTP.''; $Varstyle = ''.VARSTYLE.''; $Varshipaddress =''.tep_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>').''; $Varadpay =''.tep_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br>').''; require(DIR_WS_MODULES . 'email/html_checkout_process.php'); $email_order = $html_email_order ; /*** Begin SalesForce ***/ if (tep_not_null($rep)) { tep_mail($rep['sales_rep_firstname'] . ' ' . $rep['sales_rep_lastname'], $rep['sales_rep_email'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS ); tep_mail($rep['group_rep'], $rep['group_rep_email'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } /*** End SalesForce ***/ // lets start with the email confirmation if (EMAIL_USE_HTML == 'true') { $email_order; } else { //Package Tracking Plus BEGIN $email_order = EMAIL_TEXT_GREETING . "\n" . EMAIL_SEPARATOR . "\n" . STORE_NAME . EMAIL_INVOICE . "\n" . //Package Tracking Plus END EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n" . //Package Tracking Plus BEGIN EMAIL_TEXT_INVOICE_URL . ' ' . "<a HREF='" . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL') . "'>" . 'order_id=' . $insert_id . "</a>\n" . //Package Tracking Plus END 'Email: ' . $order->customer['email_address'] . "\n" . 'TLF: ' . $order->customer['telephone'] . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n"; if ($order->info['comments']) { + $email_order .= tep_db_output($order->info['comments']) . "\n\n"; } /*** Begin SalesForce ***/ if ($order->info['sales_rep_id']) { $sales_reps_query = tep_db_query("select s.sales_rep_firstname, s.sales_rep_lastname, s.sales_rep_email, g.group_rep, g.group_rep_email from " . TABLE_SALES_REPS . " s left join " . TABLE_SALES_GROUPS . " g on s.sales_rep_group = g.group_id where sales_rep_id = " . (int)$order->info['sales_rep_id'] . " LIMIT 1 "); $rep = tep_db_fetch_array($sales_reps_query); $salesRep = 'Sales Person: ' . tep_db_output($rep['sales_rep_firstname'] . ' ' . $rep['sales_rep_lastname']) . "\n\n"; $email_order .= $salesRep; } /*** End SalesForce ***/ $email_order .= EMAIL_TEXT_PRODUCTS . "\n" . EMAIL_SEPARATOR . "\n" . $products_ordered . EMAIL_SEPARATOR . "\n"; for ($i=0; $i<sizeof($order_totals); $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 .= $payment_class->title . "\n\n\n\n\n"; if ($payment_class->email_footer) { $email_order .= $payment_class->email_footer . "\n\n"; } } $email_order .= "\n" . EMAIL_TEXT_FOOTER . "\n" . HTTP_SERVER . DIR_WS_CATALOG . "\n" . EMAIL_TEXT_FOOTERR . "\n" ; } // Order Number in Customer Order Emails v 1.0 // tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, nl2br($email_order), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, ''); $new_mail_subject = EMAIL_TEXT_SUBJECT . ' - ' . EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id; //tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], $new_mail_subject, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); //Package Tracking Plus BEGIN tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], STORE_NAME . ' ' . EMAIL_TEXT_SUBJECT_1 . ' ' . $insert_id . ' ' . EMAIL_TEXT_SUBJECT_2 , $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); //Package Tracking Plus END // Order Number in Customer Order Emails v 1.0 $email_order=ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]","<a href=\"\\0\">\\0</a>", $email_order); /*** Begin SalesForce ***/ if (tep_not_null($rep)) { tep_mail($rep['sales_rep_firstname'] . ' ' . $rep['sales_rep_lastname'], $rep['sales_rep_email'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS ); tep_mail($rep['group_rep'], $rep['group_rep_email'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } /*** End SalesForce ***/ // send emails to other people if (SEND_EXTRA_ORDER_EMAILS_TO != '') { $email_order = $html_email_order ; if (EMAIL_USE_HTML == 'true') { $email_order; } else { $email_order = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . "\n" . 'Email: ' . $order->customer['email_address'] . "\n" . 'TLF: ' . $order->customer['telephone'] . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n"; if ($order->info['comments']) { + $email_order .= tep_db_output($order->info['comments']) . "\n\n"; } $email_order .= EMAIL_TEXT_PRODUCTS . "\n" . EMAIL_SEPARATOR . "\n" . $products_ordered . EMAIL_SEPARATOR . "\n"; for ($i=0; $i<sizeof($order_totals); $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 .= $payment_class->title . "\n\n\n\n\n"; if ($payment_class->email_footer) { $email_order .= $payment_class->email_footer . "\n\n"; } } $email_order .= "\n" . EMAIL_TEXT_FOOTER . "\n" . HTTP_SERVER . DIR_WS_CATALOG . "\n" . EMAIL_TEXT_FOOTERR . "\n" ; } /*** Begin SalesForce ***/ if (tep_not_null($rep)) { tep_mail($rep['sales_rep_firstname'] . ' ' . $rep['sales_rep_lastname'], $rep['sales_rep_email'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS ); tep_mail($rep['group_rep'], $rep['group_rep_email'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } /*** End SalesForce ***/ // send emails to other people if (SEND_EXTRA_ORDER_EMAILS_TO != '') { // Order Number in Customer Order Emails v 1.0 // tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); // tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, $new_mail_subject, $email_order, $order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address']); //Package Tracking Plus BEGIN tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, STORE_NAME . ' ' . EMAIL_TEXT_SUBJECT_1 . ' ' . $insert_id . ' ' .EMAIL_TEXT_SUBJECT_2, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); //Package Tracking Plus END // Order Number in Customer Order Emails v 1.0 } } Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted January 28, 2010 Author Share Posted January 28, 2010 tep_mail($rep['sales_rep_firstname'] . ' ' . $rep['sales_rep_lastname'], $rep['sales_rep_email'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS ); tep_mail($rep['group_rep'], $rep['group_rep_email'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); You can see the code is in the file. If the salesman is getting an email but not the group salesman, then something is wrong with that setting or email address. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
bhbilbao Posted January 29, 2010 Share Posted January 29, 2010 If I configure the email options "Send as TXT" the salesmen and the group receives the emails. If I configure as "Send HTLM" they dont receive anything. I think I must modify the other contributes (Send HTLM, Order Email Text, Email order text, etc) and integrate the code of this. In other hand, the extrange bug of Duplicated Salesmen is not problem of this contribution. Began to fail after installing SPPC. This contribution works. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.