Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Ammending auto-send of order e-mail to customer


theMusicMan

Recommended Posts

Hi Everyone...

 

Here's something that I would find extremely useful if I were able to do it on my forum... I am looking for some advice/help as to how please???

 

When a customer places an order, I beleive that an automatic e-mail notification with a status of 'pending' is sent out to that customer. This is fine and remains a requirement of my sales process.

 

However, I use the order screen in admin to track actions I or others need to do in order to process that particular order. In doing so, I need to 'uncheck' the notify customer tick-box before I click the 'update' button as I do not wish for my customers to see the internal tracking and actions associated with their order. It would be a 'customer-safe' feature if, after the intial order auto notification had been sent, that whenever I opened up that order - the 'notify customer' check box was not selected i.e. not checked. Doing this minimises the possibility of erroneously sending out an internal order status update to a customer.

 

Hope this makes sense to whoever reads it...

 

Can anyone advise as to how this could be done please... thanks

 

John

John

Link to comment
Share on other sites

Hi!

 

Open up admin.orders.php and around line 303 you will see the following code;

 

                <td class="main"><b><?php echo ENTRY_NOTIFY_CUSTOMER; ?></b> <?php echo tep_draw_checkbox_field('notify', '', true); ?></td>

 

change the true to false so it looks like;

 

                <td class="main"><b><?php echo ENTRY_NOTIFY_CUSTOMER; ?></b> <?php echo tep_draw_checkbox_field('notify', '', false); ?></td>

 

now the notify checkbox should be unchecked when u open the order up in admin. Hope this is what you were after!?

 

Back up your files before you try this!

 

Let me know how it goes!

Reddy to Rumble

 

Thank you osCommerce and all who Contribute to her!

Link to comment
Share on other sites

Hi Rumble...

 

Thanks for replying so soon.... very much appreciated.

 

I will try this today but I have a quick question for you regarding doing this ammendment... will doing this mean that an automatic e-mail of the order WILL NOT the checkbox i.e. a fail-safe feature... so the customer doesn't get notified when I update the status field unless I specifically choose to...

 

Thoughts... :)

 

John

John

Link to comment
Share on other sites

Wehey Rumble.... just tried this ... and it works a treat... and there's me thinking it would take some coding to see if the initial e-mail had been sent, then to do an "if" statement unchecking the 'notify customer' field etc....

 

Thanks a million -- sooooooo easy when you know how eh!!!

 

John

John

Link to comment
Share on other sites

Hi, i'm glad it worked for you.

 

Thanks for the feedback it helps when other people confirm things have worked so when others see this post or any posts infact they know the solution is good! :)

 

Cheers!

Reddy to Rumble

 

Thank you osCommerce and all who Contribute to her!

Link to comment
Share on other sites

  • 7 months later...

YAY!! It worked just as you said it would. You're awesome!! :D Despite what everyone else (including our web host) thinks, OSC is really growing on me!

 

Thx Again, Tim

"Success has nothing to do with what you gain in life or accomplish for yourself. It's what you do for others."

 

- Danny Thomas, founder of St Jude Children's Research Hospital

Link to comment
Share on other sites

  • 1 year later...
Hi!

Open up admin.orders.php and around line 303 you will see the following code;

                <td class="main"><b><?php echo ENTRY_NOTIFY_CUSTOMER; ?></b> <?php echo tep_draw_checkbox_field('notify', '', true); ?></td>

change the true to false so it looks like;

                <td class="main"><b><?php echo ENTRY_NOTIFY_CUSTOMER; ?></b> <?php echo tep_draw_checkbox_field('notify', '', false); ?></td>

now the notify checkbox should be unchecked when u open the order up in admin. Hope this is what you were after!?

Back up your files before you try this!

Let me know how it goes!

 

I'm trying to achieve the same result with the "Clear credit card info" checkbox using the following code:

 

               <td class="main"><b><?php echo ENTRY_NOTIFY_CLEAR_CC; ?></b> <?php echo tep_draw_checkbox_field('clear_CC', '', false); ?></td>

The box appears unchecked but when you check it and click update nothing happens . I get the following warning message:

 

"Warning: Nothing to change. The order was not updated."

 

I've tried the above mod for notifying customers and that works fine.

 

Any ideas?

 

Thanks

 

Ivor

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...