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.
Re: Contribution wanted - pre-set order update comments
Quote:
Originally Posted by
inksale
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
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
Re: Contribution wanted - pre-set order update comments
If for Firefox users, it may hlep, the extension: Clippings
Quote:
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.
Re: Contribution wanted - pre-set order update comments
Quote:
Originally Posted by
inksale
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
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