I may have spoken too soon.
The comments load into the comments box fine. However when you update the order the email sends but the comments do not show. When the comments are added, you cannot change or add to the comments and the comment box appears frozen.
Thank you
I did this work very late at night - it might need a bit more effort.
Are you using CKEditor or plain text?
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
I am using CKEditor.
Confirmed - plain text works as expected but CKEditor has the issue you see. I will fix ASAP.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
OK if you re-download the zip and install the updated copy of 157/admin/orders.php, this issue should be fixed.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Thanks, I just tried the new orders.php. Now it does not populate the comments field. I can select the comments from the dropdown but nothing appears in the actual comments box.
Hmm... you have to do it before you type anything in. I am using Chrome with the following workflow:
- bring up order details
- select a comment
- add on to the comment
- press update
If you're typing something in before selecting a comment, that appears to fail in the way you have described.
I'll look some more and see how that can be fixed.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Thank you for updating this mod @swguy.
Fresh install of this mod on an existing ZC v1.57c store. HTML tags don't seem to be carried over to the comments field on the order details page.
I can for instance wrap some boilerplate comment text in <b></b>, this shows as bold in the order_comment_boilerplate page. Not so if I add the Predefined Comments to the order details page.
(I can successfully add HTML tagged text to the order details comments field, manually)
Edit: I am not using CKEditor
Simon
Simon: if you want to use HTML in your predefined comments, use CKEditor on the order details page. (You may need to make the change below.)
@n8pbm: Please replace the ready() function in orders.php (around line 481) with the following:
Code:$(document).ready(function() { $('#predefined_comments').change(function(){ val = $(":selected", this).index(); <?php if ($editor_handler !== '') { ?> CKEDITOR.instances['comments'].setData(commentsArray[val].comment); <?php } else { ?> var html_comment = $.parseHTML(commentsArray[val].comment); var text = $(html_comment).text(); $('#comments').val(text); <?php } ?> }); });
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Bookmarks