Forums / Managing Customers and Orders / Order Comments Status/Update Boilerplate

Order Comments Status/Update Boilerplate

Views: 71,337

Results 41 to 60 of 83
17 Dec 2020, 9:39 AM
#42
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: Order Comments Status/Update Boilerplate

Installed on ZC 1.5.7b and it functions without issue.
Thank You

NTO: building a better network thru collaboration
www.needtoorder.com | www.coffeewitheinstein.com

15 Jan 2021, 9:08 PM
#43
carolinebogart avatar

carolinebogart

New Zenner

Join Date:
Apr 2007
Location:
Manchester, NH
Posts:
52
Plugin Contributions:
0

Re: Order Comments Status/Update Boilerplate

hello zenniacs,

My client today asked me why this feature is missing, he would like to auto append comments to customer messages as it used to exist per this forum thread.

The one we're on (https://www.zen-cart.com/showthread.php?220042-Order-Comments-Status-Update-Boilerplate)

Does this function not exist anymore?

21 Jan 2021, 8:42 PM
#44
helenewallis avatar

helenewallis

Totally Zenned

Join Date:
Jun 2016
Location:
Suffolk VA
Posts:
625
Plugin Contributions:
0

Re: Order Comments Status/Update Boilerplate

Something like this would make a great addition to the customer record to keep up with what the customer told you today compared to the claim they made last week, etc. Or not even when a customer is being a problem, just forgetful. I have one customer who calls at least once a week and can't remember what she asked about on the last call, so we go round and round trying to figure out what she needed help with. I've started making these notes in a separate file, but it sure would be nice to have them come up with the customer record, as many places with regular CSR employees do.

22 Jan 2021, 5:45 AM
#45
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Order Comments Status/Update Boilerplate

Does your business volume justify a using a CRM? It's unlikely that these features would be built into the Zen Cart core.

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.

23 Jan 2021, 8:19 PM
#46
carolinebogart avatar

carolinebogart

New Zenner

Join Date:
Apr 2007
Location:
Manchester, NH
Posts:
52
Plugin Contributions:
0

Re: Order Comments Status/Update Boilerplate

That's right! Having a running commentary that both parties receive (owner and customer) keeps everyone on the same page.

The Boilerplate solution is for canned messages. My client thought we used to have the ability to make an order comment and when it is stored in orders, there would be a button to the right of each comment that would move it to Customer Comments, the editor below the order comments.

I couldn't find anything like that.

23 Jan 2021, 11:11 PM
#47
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Order Comments Status/Update Boilerplate

CarolineBogart:

That's right! Having a running commentary that both parties receive (owner and customer) keeps everyone on the same page.

The Boilerplate solution is for canned messages. My client thought we used to have the ability to make an order comment and when it is stored in orders, there would be a button to the right of each comment that would move it to Customer Comments, the editor below the order comments.

I couldn't find anything like that.

You might be thinking of "Admin Notes". I don't know if that plugin has been updated in awhile though.

But, as swguy mentions, using a CRM application alongside might give you even more benefit than patching features onto the store.

.
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.

5 Feb 2021, 12:03 AM
#48
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: Order Comments Status/Update Boilerplate

I previously had posted that this worked with 1.5.7b... and it did ONLY because I overwrote the admin/orders.php file with 1.5.6 version. Which broke several new features with 1.5.7b in the orders admin.

After merging the 3 comments from the Boiler plate orders.php file with 1.5.7b orders.php file, the Boiler plate allows you to define the comments, the comments display as a selection in the order, but do NOT load when selected.

Currently is NOT functioning with 1.5.7b

NTO: building a better network thru collaboration
www.needtoorder.com | www.coffeewitheinstein.com

15 May 2021, 8:58 PM
#49
n8pbm avatar

n8pbm

Zen Follower

Join Date:
Mar 2005
Posts:
146
Plugin Contributions:
0

Re: Order Comments Status/Update Boilerplate

Carbonless:

I previously had posted that this worked with 1.5.7b... and it did ONLY because I overwrote the admin/orders.php file with 1.5.6 version. Which broke several new features with 1.5.7b in the orders admin.

After merging the 3 comments from the Boiler plate orders.php file with 1.5.7b orders.php file, the Boiler plate allows you to define the comments, the comments display as a selection in the order, but do NOT load when selected.

Currently is NOT functioning with 1.5.7b

Any chance you resolved this? I am trying to merge the two files together but have the same issue. I can select the comments in the dropdown but they do not populate the comments section. I am sure it is where the changes are placed but the 1.5.7c orders.php file is very different than the one included in the mod. I just do not know enough to figure it out.

17 May 2021, 6:41 AM
#50
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Order Comments Status/Update Boilerplate

OK this plugin has been updated for 1.5.7.

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.

17 May 2021, 1:58 PM
#51
n8pbm avatar

n8pbm

Zen Follower

Join Date:
Mar 2005
Posts:
146
Plugin Contributions:
0

Re: Order Comments Status/Update Boilerplate

swguy:

OK this plugin has been updated for 1.5.7.

Thank you, It worked perfectly.

17 May 2021, 2:57 PM
#52
n8pbm avatar

n8pbm

Zen Follower

Join Date:
Mar 2005
Posts:
146
Plugin Contributions:
0

Re: Order Comments Status/Update Boilerplate

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

17 May 2021, 5:33 PM
#53
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Order Comments Status/Update Boilerplate

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.

17 May 2021, 5:53 PM
#54
n8pbm avatar

n8pbm

Zen Follower

Join Date:
Mar 2005
Posts:
146
Plugin Contributions:
0

Re: Order Comments Status/Update Boilerplate

I am using CKEditor.

17 May 2021, 7:43 PM
#55
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Order Comments Status/Update Boilerplate

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.

17 May 2021, 10:49 PM
#56
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Order Comments Status/Update Boilerplate

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.

17 May 2021, 11:39 PM
#57
n8pbm avatar

n8pbm

Zen Follower

Join Date:
Mar 2005
Posts:
146
Plugin Contributions:
0

Re: Order Comments Status/Update Boilerplate

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.

18 May 2021, 11:46 AM
#58
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Order Comments Status/Update Boilerplate

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.

18 May 2021, 12:04 PM
#59
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Order Comments Status/Update Boilerplate

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

18 May 2021, 1:03 PM
#60
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Order Comments Status/Update Boilerplate

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:

    $(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.