Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2005
    Location
    Gold Country CA
    Posts
    315
    Plugin Contributions
    0

    Default Contribution wanted - pre-set order update comments

    I find myself typing the same info over and over again in the order comments section when processing a customers order.

    It would be nice to have user definable Text to choose from to populate this field. It would save a lot of time.

    Examples:

    Thanks for your order. It has been shipped out USPS Priority Mail.
    Expect to see you package in 1-3 days.
    Your Tracking number is:

    or

    Thanks for your order. It has been shipped out UPS.
    Expect to see you package in 3-5 days.
    Your Tracking number is:

    or

    During the processing of your Credit Card Information we found that the Shipping address does not match the Billing address of your credit card. For us to complete your order you must send us the proper billing address where you receive your Credit Card Statement.
    Last edited by inksale; 28 Dec 2006 at 01:59 AM.
    My gene pool could use a little chlorine and a lifeguard.
    Inksale.com
    TeamFastEddy.com

  2. #2
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: Contribution wanted - pre-set order update comments

    Quote Originally Posted by inksale View Post
    I find myself typing the same info over and over again in the order comments section when processing a customers order.
    Inksale-

    I have set this up in admin/orders.php in my 1.27 shop. I am about to integrate into my 1.36 shop. I will post code here later today.

    Based on a code snippet in grayson's PDF Order Center mod if you want to take a look at that mod.

    Woody

  3. #3
    Join Date
    Jan 2005
    Location
    Gold Country CA
    Posts
    315
    Plugin Contributions
    0

    Default Re: Contribution wanted - pre-set order update comments

    It would be great if you could post it or send it to me.
    I will look at the other contribution.

    For me it will save a lot of time and I would truly be grateful
    My gene pool could use a little chlorine and a lifeguard.
    Inksale.com
    TeamFastEddy.com

  4. #4
    Join Date
    May 2004
    Location
    Hong Kong
    Posts
    1,291
    Plugin Contributions
    1

    Default Re: Contribution wanted - pre-set order update comments

    If for Firefox users, it may hlep, the extension: Clippings

    Saves and manages frequently-entered text for pasting later. Text can be pasted from Clippings into forms and input fields without the hassle of retyping or repetitive copying and pasting. Perfect for forms, web mail, blog entries, wiki editing and forum posts.
    A New Starter again

  5. #5
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: Contribution wanted - pre-set order update comments

    Quote Originally Posted by inksale View Post
    It would be great if you could post it or send it to me.
    In admin/orders.php
    Find:
    Code:
    <td class="main noprint">
    <?php echo zen_draw_textarea_field('comments', 'soft', '60', '5'); ?>
    </td>
    After <td class="main noprint">

    INSERT:
    Code:
    <table border="0" cellpadding="2" cellspacing="0">
    <tr>
       <td><INPUT TYPE="checkbox" NAME="ckb" VALUE="Comment One. " onClick="Doit(this.form)"></td>
       <td class="smalltext">Comment One</td>
     </tr>
    <tr>
       <td><INPUT TYPE="checkbox" NAME="ckb" VALUE="Comment Two. " onClick="Doit(this.form)"></td>
       <td class="smalltext">Comment Two</td>
     </tr>
     <tr>
       <td><INPUT TYPE="checkbox" NAME="ckb" VALUE="Comment Three" onClick="Doit(this.form)"></td>
       <td class="smalltext">Comment Three</td>
     </tr>
     <tr>
       <td><INPUT TYPE="checkbox" NAME="ckb" VALUE="Comment Four" onClick="Doit(this.form)"></td>
       <td class="smalltext">Comment Four</td>
     </tr>
     <tr>
       <td><INPUT TYPE="checkbox" NAME="ckb" VALUE="Comment Five" onClick="Doit(this.form)"></td>
       <td class="smalltext">Comment Five</td>
     </tr>
     <tr>
       <td><INPUT TYPE="checkbox" NAME="ckb" VALUE="Comment Six" onClick="Doit(this.form)"></td>
       <td class="smalltext">Comment Six</td>
     </tr>
    </table><br>
    The above will give you six checkboxes. Edit the "comment" text to meet your own needs.

    And you may want to add additional vertical space to the comments edit box (the default is five rows... I prefer ten).

    For example:
    Code:
    <?php echo zen_draw_textarea_field('comments', 'soft', '60', '10'); ?>
    The above has proven to be a major time saver for me. If you have any questions let me know.

    Woody

  6. #6
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: Contribution wanted - pre-set order update comments

    Oops... forgot to include the script to insert immediately above </head> in admin/orders.php
    Code:
    <script LANGUAGE="JavaScript">
    function Doit(frmobj)
    {
    frmobj.comments.value=""
    for(i=0;i<frmobj.ckb.length;i++)
    {
    if(frmobj.ckb[i].checked)
    {frmobj.comments.value+=frmobj.ckb[i].value}
    }
    }
    </script>
    Woody

 

 

Similar Threads

  1. v154 Order Comments Status/Update Boilerplate
    By lloyd_borrett in forum Managing Customers and Orders
    Replies: 72
    Last Post: 4 Apr 2024, 03:43 PM
  2. v151 Pre-canned Admin Order Update Comments & Checkboxes
    By Woodymon in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 5 Nov 2013, 09:52 PM
  3. Pre order set up Problems
    By cerri in forum Managing Customers and Orders
    Replies: 0
    Last Post: 30 Jan 2013, 06:30 PM
  4. HTML Links in Customer Comments (order update)
    By Green333 in forum General Questions
    Replies: 2
    Last Post: 1 Mar 2011, 06:45 AM
  5. Can I set up a Pre Order Item option?
    By lorrie in forum Customization from the Admin
    Replies: 9
    Last Post: 7 May 2010, 06:41 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR