Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    May 2011
    Posts
    67
    Plugin Contributions
    0

    Default Customer Notification, Change Default Setting

    Hello,

    What I want to do is have the order update email notifications sent to customers to have "Hide" as the default setting instead of "Email".
    We have updates made to orders that are helpful for us in the admin but that would only serve to confuse customers. It would be more convenient if we didn't have to click "Hide" every time we make an update.

    I know this can be done fairly easily, perhaps in the admin/order.php file, but my php is very limited.
    I've fooled around with these lines (changed "true" to "false", "1" to "-1" and "0", etc):

    <td class="main"><strong><?php echo ENTRY_NOTIFY_CUSTOMER; ?></strong> [<?php echo zen_draw_radio_field('notify', '1', true) . '-' . TEXT_EMAIL . ' ' . zen_draw_radio_field('notify', '0', FALSE) . '-' . TEXT_NOEMAIL . ' ' . zen_draw_radio_field('notify', '-1', FALSE) . '-' . TEXT_HIDE; ?>]&nbsp;&nbsp;&nbsp;</td>

    I got it to show "Hide" as the default setting on the order status page, but a test order reflects that this is in appearance only-- customers still receive emails on order updates (even if the radio button is initially set to "hide").

    Anybody have any suggestions?

    It'd be appreciated!

    Thanks,
    zennyjenny

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Customer Notification, Change Default Setting

    Don't touch the 1 or 0 or -1. Just set the TRUE on the one you want pre-checked, and set FALSE on the others.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    May 2011
    Posts
    67
    Plugin Contributions
    0

    Default Re: Customer Notification, Change Default Setting

    Thank you. Now it works!

    <td class="main"><strong><?php echo ENTRY_NOTIFY_CUSTOMER; ?></strong> [<?php echo zen_draw_radio_field('notify', '1', FALSE) . '-' . TEXT_EMAIL . ' ' . zen_draw_radio_field('notify', '0', FALSE) . '-' . TEXT_NOEMAIL . ' ' . zen_draw_radio_field('notify', '-1', TRUE) . '-' . TEXT_HIDE; ?>]&nbsp;&nbsp;&nbsp;</td>

 

 

Similar Threads

  1. Email notification if a customer makes a change to their details?
    By southpacific in forum Managing Customers and Orders
    Replies: 9
    Last Post: 5 Apr 2010, 07:28 PM
  2. Email notification of customer address change
    By netmeg in forum Managing Customers and Orders
    Replies: 1
    Last Post: 27 Feb 2009, 12:33 AM
  3. Changing default setting on Customer Product Notification
    By ingoito in forum Customization from the Admin
    Replies: 4
    Last Post: 10 Feb 2009, 01:18 AM
  4. Admin: Change default for 'Notify customer' to off
    By ronlee67 in forum Customization from the Admin
    Replies: 14
    Last Post: 17 Aug 2008, 03:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg