There should be a generic 'order comment' message log. End users should be able to created order comments for orders using the admin user interface. This plugin would simply have a template of 'Comment: {{ string }}' and the form provides the value for string'
| Comment | File | Size | Author |
|---|---|---|---|
| #141 | 2908196-Customer-facing-order-comments-141.patch | 36.66 KB | ayalon |
| #139 | 2908196-Customer-facing-order-comments-139.patch | 36.65 KB | ayalon |
| #138 | 2908196-Customer-facing-order-comments.patch | 37.08 KB | ayalon |
| #130 | Screen Shot 2563-07-19 at 08.34.56.png | 56.44 KB | abx |
| #128 | 2908196-128.patch | 34.85 KB | geertvansoest |
Issue fork commerce-2908196
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
Maikel commentedStarted building a solution (or actually a colleague of mine did @dannypeeters). It's not ready yet but eager to share progress, and especially getting help with creating a better solution. Please let us know if we are going in the right direction.
Comment #3
Maikel commentedShort summary of what is going on;
- Still have to validate the form
- Content of mail is very basic. Message + Regards. Order content is available but not printed yet.
- Check if texts and comments are ok and provide correct defaults in english
Current working version screenshot attached.
Comment #4
zengenuity commentedI think the previous patch was incomplete. It was missing the new files created.
In any case, I picked up from the previous patch, reorganized a few things to better match how other parts of Commerce are designed, and implemented this again. It's not finished yet, but I need this for a project that I'm working on, so I want to push the ball a bit further down the court. Missing from this patch:
My project has to be finished in 2-3 months, so I should have all of those items completed by then.
Comment #5
joshmillerCommerce Point of Sale needed this and McCabe decided to implement a commerce_log based version of order comments and that patch landed a little while ago:
#2923195: Add Notes
The plan for Commerce, at least according to BojanZ through the comments of the above issue, was to then bring the work done in POS into Drupal Commerce.
Comment #6
joshmillerComment #7
gmem commentedThis patch makes the checkbox for emailing the customer functional, still working on the other missing bits from #4 however.
Comment #8
gmem commentedWorking on the customer-facing note input, I'm not entirely sure about the wording and where I need to put the entry for the schema to actually install the notes column but regardless.
Since I've added it to the database and order entity, we could probably make it display elsewhere in the actual order page, but right now it logs just as the admin notes would with bold text to stand out. Displaying the notes in the customer's view of their order would be good too, it does display fine in the review however.
Need to work on permissions and test coverage.
Comment #9
gmem commentedWorked a bit on permissions, I'm working out the best way to test the new functionality, but regardless here what's new:
Moving to needs review for feedback.
Comment #10
gmem commentedComment #13
gmem commentedFixed phplint error
Comment #15
gmem commentedRemoved schema from another unrelated issue that was accidentally added to the diff and added a dependency to commerce_log to commerce_checkout for the customer order notes.
Comment #16
gmem commentedAdded commerce_log as a dependency to commerce_order as well, which should clean up the rest of the test errors. Also added a placeholder for the note input if the customer doesn't have the permission to add a comment, I wonder if it would be better to just add the hidden attribute to the element instead?
Comment #17
gmem commentedComment #18
skyredwangcommerce_log entity doesn't use entity_reference to commerce_order? Why custom code?
Comment #19
carlxjs commentedComment #20
carlxjs commentedComment #21
carlxjs commentedComment #22
carlxjs commentedComment #23
carlxjs commentedAdd a entity reference of commerce_order when save a commerce_log that its source_entity_type is 'commerce_order' .
Delete the entity reference of commerce_order when delete a commerce_log that its source_entity_type is 'commerce_order' .
Comment #24
bojanz commentedThis patch should not be modifying the Order entity nor adding any order fields.
Comment #25
carlxjs commentedRemoved the entity reference field that I added in commerce_order.
Change commerce_log field source_entity_type and source_entity_id to be a entity reference field source_entity.
Comment #26
bojanz commentedThere's a reason why we didn't use an entity_reference field. ER requires you to specify an entity type, a log can be created for any entity type. So your approach won't work. Use what you have.
Comment #27
skyredwangThis came up in our previous discussion. Why is that? is there a use case for
commerce_logto be attached to e.g.node? Shouldn'tcommerce_logassume it would only work withcommerce_order?Comment #28
bojanz commentedThere is a use case for logs produced by payments, for example.
Besides, changing this would be both a BC break and require a large and impractical update function.
Comment #29
flocondetoileI am using commerce log for orders (of course, with custom implementation), but for payments too, and to handle a global notification system (as the message stack could do it) for some users on changes made on products, nodes and even some taxonomy terms.
So the commerce logs entities on one of my projects are related to order, payment, product, node and term.
Comment #30
skyredwangGood to know.
Just to clear, ER can be created for any entity type, too. But, for a specific field instance, ER can target one entity type. But, I don't see useful use-cases that a commerce_log entity can target multiple entity types?
I thought this patch is being reviewed, therefore, no production support yet. But, if you already have sites, using this on production, you might just commit the code first, then future commits will try to minimal tweak the code?
Comment #31
bojanz commentedThe target_type is set on the Log entity type level (in the base field definition).
The patch is modifying the Log entity, used by every existing Commerce site, hence the BC comment.
Comment #32
safallia joseph commentedI cloned the latest commerce, and patch in #25 is not applying cleanly for me in branch 8.x-2.x.
I'm getting errors
error: patch failed: modules/order/commerce_order.install:73
error: modules/order/commerce_order.install: patch does not apply
I'm trying to re-roll the patch to work against the latest code
Comment #33
skyredwangAh, I missed understood the situation. Just to confirm, this issue is still following the plan in #5. I will look into the "notes"
Comment #34
safallia joseph commentedRe-rolled the patch in #25 to work against the latest code base.
Looking into the issues mentioned by Bojanz in #26
Comment #35
safallia joseph commentedRemoved the entity reference added for source entity in patch #25
Comment #36
safallia joseph commentedComment #38
krystalcode commentedI did a review of this issue and patch.
Firstly I wanted to voice the opinion that going with a log-based approach brings along the following problems:
- Default UX is poor; for most users notes/comments on an order is arguably something different than a list of log entries.
- UI more difficult to customize, even though possible.
- Not flexible/extensible enough, it would require more effort to build application-specific functionality on top of it.
More flexibility and ease would be provided by using comments.
That said and assuming that this has been discussed, here's a few comments after testing the last patch.
- Checkout assumes that the reason that someone does not have permission is that they're not logged in; this might not always be the case. It might be better to hide the pane if the user has no permission instead of displaying a message that you need to log in to add a note to the order.
- Notes added on checkout are added to a field. From Bojan's comment "This patch should not be modifying the Order entity nor adding any order fields.", are we clear on how we're implementing this?
- As a customer user I cannot add a note to my orders even after having the right permissions assigned. Is the idea only for admins to send messages to the customer? That'd be pretty limiting.
- In the checkout pane's validatePaneForm function: remove if there's no validation to add?
- The event subscriber is defined in both services file and in service provider. The definitions added in the service provider do not seem to do anything that can't be done with the static definition in `services.yml` file so I'd suggest they are removed for both event subscribers.
- Flush all caches: you need to look into invalidating the order entity's cache tags specifically.
On the `CommerceLogOrderMessageForm.php` class:
- Current user service should be injected in the constructor.
- You can make the buildForm function more readable by doing
if (!\Drupal::currentUser()->hasPermission('add notes to order')) { return; }at the top.Comment #39
safallia joseph commented@krystalcode - Thanks for the review
Made the pane visible only for users who has permission `add notes to own order`
Removed the order fields and used commerce log entity
Now users who has the permission `add notes to own order` is able to add comments to their orders
Done - Removed the validation
That is correct, removed the unwanted CommerceLogServiceProvider.php File
Invalidated only order caches
- Done and Done
Please review the attached patch
Comment #40
safallia joseph commentedComment #41
Nils LoewenReview of patch 40:
1:When going through checkout, you can write an order comment, but if you go back and try to edit order comment, the previous message is lost. Every time a message is submitted a new entry is created, it should probably only save when the order is completed.
2: Anonymous customer using 'Checkout as Guest' does not have permission to write an order comment by default. I apologies if I have missed previous discussion about this. Is it intended that the logs are only for admin and logged in users? Either we should make this visible to all users and remove the permission, or permission should be given to anon and authenticated users on commerce install.
3. Adding messages is presented as a feature when view a user's orders `/user/1/orders/4`. However, the submit button does not work. Also The previous messages should be presented with at least a time stamp.
Display options should be available at /admin/commerce/config/order-types/default/edit/display/user for order logs.
Comment #42
Nils LoewenChanged the default permissions to allow Anon customers to write order comments.
Comment #44
Nils LoewenReorganized OrderEventSubscriber. Split onCustomerMessage emailing process into sendCustomerMsgEmail() function as per the TODO.
Also includes phpcs and dependency injection fixes for that file.
Comment #45
Nils LoewenCleaned up code in OrderEventSubscriber.
Changed dependencies of commerce_cart needs commerce_log because of local installation issues. The commerce_log.services.yml was looking to commerce_cart content before commerce_cart was installed. I don't know why the D.o testrunner worked at all.
Comment #46
Nils Loewen[Comment Deleted]
Comment #47
Nils LoewenThis may have unintended consequences. It was necessary because the log messages were being saved twice.
Comment #48
Nils Loewendeleted
Comment #49
Nils LoewenTODO: The Order Comments are not being displayed to user when user views order details. Ideally the Order Log messages would be their own field managed by Order Type, 'User' view mode.
Also, I intended to differentiate log messages with 'To Customer' and 'From Customer'. However, when a customer adds a message after placing an order, the wrong heading comes up. See image:
Comment #50
Nils LoewenChanges in this interdiff:
- Unified the naming of this new feature. Technically we are (now) using the Log entity to store a property called 'comment'. Previously this patch referred to these messages as 'notes', 'messages', 'comments', and 'log messages'. I have renamed everything to call this new feature a 'comment'. This naming is open to debate. It is certainly important for the code to be consistent. The biggest downside to this choice is that it competes with a 'comment' from Drupal proper.
- Differentiated Event TYPE_CUSTOMER into TYPE_TO_CUSTOMER and TYPE_FROM_CUSTOMER and their respective functions and templates.
- Changed permissions to add/view admin comments, add/view customer comments.
- Enabled these permissions on install with commerce_log.install
- UX changes, see next comment.
Comment #51
Nils Loewen[deleted]
Comment #52
Nils LoewenComment #53
Nils LoewenTests are failing due to dependency issues between commerce sub-modules.
I will try resolve this by using hooks for commerce_log to alter commerce_order.
Comment #54
travis-bradbury commentedcommerce_log_install() should probably not be duplicating permissions from commerce_checkout_install(). Maybe take the comments ones out of commerce_checkout_install() and take the 'access checkout' ones out of commerce_log_install().
Comment #55
Nils LoewenComment #56
joshmillerDependency Injection please :)
Comment #57
quietone commentedInterested in moving this along. Will do fixes for #56.
Comment #58
quietone commentedFixes for #56 and used inheritdoc on the methods in the same file.
Comment #60
quietone commentedI'm not able to run these tests locally now, so am relying on testbot.
Fix the constructor and changed a line for phplint, so it works in Php 5.
Comment #62
quietone commentedNow 2 items picked up with phpcs
Comment #64
quietone commentedAdd commerce_product to several tests, hoping it will fix these errors.
Comment #66
Nils LoewenI tried to take a quick look and see what's happening with these tests. I could not find a quick fix.
This Interdiff is just a nit of something I missed when converting all 'message' instances to 'comment' for consistency.
Aside from fixing the tests, the biggest todo for this issue is to reduce sub-module interdependecies. Ideally the chunk of code in order.module::preprocess could be moved to log.module. Maaaybe we could add an `@import` in the commerce-order--user.html.twig for the order_comments section which would point to a template in commerce_log.
Comment #67
quietone commentedNeeded a reroll.
Comment #68
quietone commentedComment #70
ayalon commentedUnfortunatly the patch #68 cannot be applied to Commerce 2.12. @quietone
Comment #71
ayalon commentedHere is a reroll that applies to 2.12
Comment #72
jseniuk commentedPatch above works
Comment #73
quietone commented@jseniuk, Hi welcome to Drupal! Nice to know the patch worked for you. What steps did you take to verify that it worked?
This needs to go back to NW because it still needs tests and it needs a reroll. The patch is not applying.
Comment #74
quietone commentedJust fixing whitespace errors in the patch.
I've taken a brief look at the failing tests and confirmed I don't know enough about commerce and Functional tests to make a fix. Anyone able to take a look?
Comment #75
quietone commentedComment #77
gge commentedWhen the Orders Comments box is placed on the Order Information, some errors are displayed when on the next step, in my case Order Review page and the customer comments is an empty panel, only the title is shown.
The errors:
User error: "0" is an invalid render array key in Drupal\Core\Render\Element::children() (line 97 of core/lib/Drupal/Core/Render/Element.php).User error: "1" is an invalid render array key in Drupal\Core\Render\Element::children() (line 97 of core/lib/Drupal/Core/Render/Element.php).#74
When the Orders Comments box is placed on a different pane (tried on Review) it seems to work fine.
My PHP version is 7.3.4.
Also when trying to apply the patch got this:
commerce_log.info.yml.rej contain this:
Thanks
Comment #78
gge commentedAlso, when there is no comment added by the customer, there should be no entry created in the Order Log.
Comment #79
navkaur commentedThe patch in #74 works, just needed few changes.
When doing a fresh build of site, we can't have a service that depends on a module, cause each service is executed when the container is built
as mentioned, https://www.drupal.org/project/commerce/issues/2839426
so added services back in CommerceLogServiceProvider.php
Comment #80
navkaur commentedinterdiff for patch #79
Comment #81
navkaur commentedComment #82
luksakThe patch works perfectly for me! Thank you!
Comment #83
navkaur commentedThe Renderer strips the newline tags from "Comment" textfield (which is of type = textarea) and sends email to customer as one big string. This happens when a comment contains multiple new lines. (comment with "customer facing comment " option and "notify customer by email" checked).
This new patch converts every new line into new string for email body.
Comment #84
navkaur commentedComment #85
navkaur commentedCorrect interdiff
Comment #86
navkaur commentedApologies, the above patches #83 and #86 are not correct.
Comment #87
navkaur commentedCorrect patch is #87.
Sorry for all the mess.
Comment #88
luksakI kept getting errors when commerce orders entities were rendered on routes that do not have a
commerce_orderparameter. In my case that happened when generating pdfs using entity_print. This is the error I got:This is the quick fix i came up with:
Comment #89
ayalon commentedHere is a reroll with the changes Lukas von Blarer suggested:
Comment #90
ayalon commentedMy previous patch had issues being applied. Here is a fixed version.
Comment #91
codebymikey commentedHow close/feasible is this feature to landing on an actual release?
It's extremely useful functionality, especially when migrating from an existing system with order notes.
Comment #92
ravi.shankar commentedI have re-rolled patch #90. It still needs tests.
Comment #93
jastraat commentedWith the latest patch, I see the following error after attempting to add an admin comment on an order:
Warning: call_user_func() expects parameter 1 to be a valid callback, class 'Drupal\commerce_log\EventSubscriber\OrderEventSubscriber' does not have a method 'onAdminComment' in Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
The patch adds the following to getSubscribedEvents() in OrderEventSubscriber:
'commerce_order.comment.to_customer' => ['onToCustomerComment', -100],
'commerce_order.comment.from_customer' => ['onFromCustomerComment', -100],
'commerce_order.comment.admin' => ['onAdminComment', -100],
But there are no functions that correspond to these.
Comment #94
shabana.navas commentedcurrentUser() should be injected.
Comment #95
shabana.navas commentedOkay, apparently, the patch was good up until #87. Somehow, the patch that was submitted starting in #89 has been messed up and omits some of the changes including the changes added to the OrderEventSubscriber class in commerce_log.
Comment #96
shabana.navas commentedRerolled #87, which was the last good patch, for latest 8.x-2.x and added changes in #89.
Comment #97
jastraat commentedUnfortunately that last patch doesn't apply with composer
However - it does apply to the latest dev with git without any errors. And so far in testing it works to allow both comments on checkout and administrative comments after checkout. Thanks!
Comment #98
shabana.navas commentedYeah, I've add the same composer issue with the last few patches, including mine. It's just not applying w/ composer but works fine with git and no issues reported.
Comment #99
ayalon commentedThe patch is renaming a file and this does not work with Composer (Issue of cweagans/composer-patches).
If you want to use the patch with Drupal Commerce 2.16, you will have to force Composer to checkout the Git repo. Then the patch applies cleanly.
The commit-hash for Commerce 2.16 is "29024144":
Then you can use the patch with composer.
Comment #100
siegristReroll for 2.17.
Comment #102
luksakThe patch in #100 doesn't apply using composer. Here is a try to fix that.
Comment #103
luksakComment #105
luksakHm, somehow I am failing to fix the patch for composer as well... It applies using git.
Comment #106
luksakI am sorry, my issue was caused by not using latest dev...
Comment #107
luksakI wanted to point out this feedback in #41:
I also think this is crucial, since the customers would be confused if their comment is missing when they visit the checkout step that holds the comment pane again and their comment is not visible. I have an earlier version of this patch in production and a lot of customers fill out the comment multiple times, which is pretty confusing for the people that handle the orders.
Also editing a comment should be possible and since in my opinion only one comment should be possible during checkout, we should always load the customer's existing comment in the checkout pane.
What do you think?
Comment #108
joekersDoes anyone have any info on how to use the core comment system on orders rather than using the commerce log functionality? Maybe there was a different issue for that and some reasons why that approach wasn't used.
Using commerce log doesn't give the flexibility I need.
Comment #109
rszrama commented@joekers out of scope for this issue, but maybe a good conversation thread for Slack. It's not something we'll be looking to do in core.
@Lukas von Blarer, if I'm not mistaken, your patches are leaving out quite a bit ... basically every new file. Did you mean to do that?
Comment #110
rszrama commentedHaving reviewed the patch in #100, some thoughts:
All that said, the patch and approach aren't bad, it's just not a usable patch that needs a lot of love from someone really invested in the current approach before we can consider moving it into core. Frankly, I think we stand a much better chance of narrowing the focus back down to solving the original post: adding comments to orders from the admin interface via log messages.
That represents a much more achievable scope where we can solve some of the issues I've pointed out above, and then we can open a separate feature request specifically for things like defining a checkout pane, emailing admin comments, making comments visible on the order view page, etc.
Comment #111
idflorin commentedI look forward to it. This will be in dev|stable or separate module?
1 month, 2 months?
Comment #112
TylerMarshall commentedThis patch sets out to simplify the scope of this issue:
Users with permissions to view commerce orders, and with the new permission of "Add admin comment to orders" should be able to go to any order view page, and have the ability to add an Admin comment (specified via template).
Comment #113
rszrama commented@TylerMarshall Rock on, this is exactly what I envisioned. If I may make a small change request, I'm thinking we should make OrderCommentForm even more generic than I originally specced out so we can use it in other contexts more easily later (e.g. a checkout pane). To do that, I think we need the following changes:
Good find on nl2br(), btw! Didn't know that func existed. : D
Comment #114
TylerMarshall commentedComment #115
rszrama commented@Tyler The logic in the Views area handler is incorrect:
The area handler should actually have the "empty" option enabled by default (meaning the comment form should be visible even if there are no log entries on the order yet), and the if statement should rather be:
I was trying to figure out why the area handler wasn't showing for me, and it's because I'd configured the area handler to appear on empty, but the || made it invisible. : D
Other suggestions:
I'm curious to know what options we'd have for an upgrade path here, too. We can just document that existing sites who want this feature will need to enable it, but it would be great if we had some interface or update hook for adding the area handler to the View. Any ideas?
Comment #116
mglamanReviewing and working on this to push it over the edge!
Comment #117
mglamanI created an issue fork and put #114 on it: https://git.drupalcode.org/issue/commerce-2908196/-/commit/fc75ad4f61c62...
#115 shows we need automated test coverage.
If no one modified
modules/log/config/install/views.view.commerce_activity.yml, we can use our ConfigUpdater service to import the new changes. We can also add instructions to the issue summary on how to add this.It feels weird to have this permission here, when it is actual a log action.
The Log module should be providing this permission. And it should actually provide it for any supported entity, yeah? Since logs can belong to any entity type.
The
commerce_log_categoriesdefinitions let us know what entities have log templates available.We need to pass to \Drupal\Component\Utility\Xss::filter
Why are we passing to
t? We're accepting user inputWe've started to move away from putting entity storage handlers as properties, since it adds work to the serialization process of forms. We can just inject the entity type manager and fetch the storage when needed (which is a performance boost as well.)
Needs injection
Comment #118
mglamanHere's a new WIP patch.
Comment #119
mglaman#115.2
So the click to expand is native browser interaction with a details element. So we want to add a JavaScript snippet which does:
Here are screenshots, as well.
Comment #120
mglamanI uploaded the wrong screenshot before, here it is:
I did some discussing with @rszrama. The generated permission should say "Add admin comments to order", but my work to make this apply to all entities essentially added admin-only comment support to them without identifying it that way. Working out how we could support collecting customer
I'm going to rename
commerce_order_commenttocommerce_order_admin_comment. So the Log module will check for{$entity_type_id}_admin_commentand support creating comments from an activity log. In a follow up we can figure out how to use \Drupal\commerce_log\Form\LogCommentForm to submit non-backoffice comments.Comment #121
mglamanHere's the change: https://git.drupalcode.org/issue/commerce-2908196/-/commit/4033b6c8c1ced...
This keeps the LogCommentForm generic, but the Views area handler specific to admin comments.
Comment #122
TylerMarshall commentedReviewed, changes make sense to me.
Comment #123
mglamanShould this be "LogCommentPermissions" or just "LogPermissions"
This permission name feels weird, but it's also never exposed.
add commerce_order admin log commentsComment #124
mglamanOkay, internally we discussed and settled on
add commerce_log ${entity_type} admin commentfor the permission. Going to roll that patch quick and then commit if tests are green!Comment #125
mglamanOkay, updated patch for sanity check before commit.
Diff: https://git.drupalcode.org/issue/commerce-2908196/-/commit/d204820e5ebe5...
Comment #127
mglaman🥳 Committed!
Comment #128
geertvansoest commentedDespite the last patches are looking very good, we're not able to implement it in our current shop. If doing so, we'll lose some main features that already are in our shop, so we've to elaborate on patch #100. I'm the colleague of Maikel, who opened this issue back in 2017, and still have to maintain the same shop he was developing right then.
After upgrading to the last Drupal (8.8.8) and Commerce (2.20) version, I wasn't able to implement #100 anymore. So I made some small fixes, after which I was able to implement it again.
Unless I know this version needs much improvements and will not be in the "core" in short term, I've attached it. Maybe some other people who're facing the same problems can still use this.
Comment #129
mglaman@geertvansoest your patch adds customer comments and allowing them to be made from the checkout form, correct? Trying to discern. This should definitely move into a new issue so we can review and work on it. It'll make it easier to review your patch.
Comment #130
abx commented@mglaman, patch #128 also add "Customer-facing comment" that an admin can use in each order to communicate with customers by commerce log and to send an Email to customers if needed
*** Ubercart 2 (Drupal 6) has this right out of the box and this is what I'm searching how to do in Commerce 2 since we need to contact our customers from time to time and leave a note so that all of our admin know what is happening.
Comment #132
geertvansoest commented@mglaman It's true what @abx says. Those functionalities where in some patches posted in this ticket earlier, I just made them (patch #100) compatible with the latest Drupal and Commerce version.
Comment #133
ayalon commented@geertvansoest: Is there a chance, that you upgrade the patch again for Commerce 2.21? We are also stuck on this patch and I appreciated your upgrade a lot!
Comment #134
geertvansoest commented@ayalon I will, if we update Commerce to 2.21 ourselves. At this moment we're still using Commerce 2.20.
Comment #135
mhmhartman commentedJust adding my 2 cents here, it's partly related and might save some people a lot of time.
Some people probably only need a simple comment field where the customer can add a note for the admin. You can add fields through /admin/commerce/config/shipment-types/default/edit/fields and display them to the customer and admin. No other actions needed.
Update: forgot to mention i'm using version 2.20
Comment #136
pacifigraphic commented@mhmhartman In version 2.23, the path / admin / commerce / config / shipment-types / default / edit / fields has been replaced by / admin / commerce / config / order-types ... this does not work, no possibility to display the comment field for customers, and patch # 125 is already up to date on version 2.23. I can't find the solution to simply display a comment field in the review page.
Comment #137
afzal hussainIn version 2.25 the core comment module can use for commerce product, order etc by creating a targeted comments types.
Comment #138
ayalon commentedHere is a reroll of the missing features of this thread with "Customer Facing" comments with mail notifications.
Patch applies against Commerce 2.26. Based on #128
Comment #139
ayalon commentedHere is a reroll for Commerce 2.28 with renamed permissions:
Comment #140
morbus iff@ayalon: Could you make a new issue with your updated patch, per #129?
Comment #141
ayalon commentedYes we should separate it.
Meanwhile another reroll for Commerce 2.29.
Comment #142
luksakThis issue is closed. Should we open a new one for the functionality that is included in the patch of #141 since a few people including me need that?
Comment #143
vipin.j commentedI have split the issue and created a new related one for this as per requested with #140 and #142. Have also updated & uploaded the patch based on #141.
Comment #144
abx commentedComment #145
anybodyhttps://www.drupal.org/project/commerce_checkout_order_fields might also be helpful in cases like this? Leaving the link FYI!
Comment #146
morbus iff@Anybody: we use both, aye. That module can work for "when the customer leaves the admin a comment"; this issue (and #3267366) handles the other end - an admin responding back to a customer about their order.
Comment #147
nags338228 commentedHi guys,
I am not able to apply #141 patch for 2.38 or lower versions having error: "The process "patch '-p0' --no-backup-if-mismatch -d".
Can anyone lead some light please?
Thanks !
Comment #148
morbus iffnags, please see #143, where future development is happening.
Comment #149
nags338228 commentedHi @Morbus,
I patched with https://www.drupal.org/project/commerce/issues/3267366 and https://www.drupal.org/project/commerce/issues/2908196 this issue and merged both of it.
The #25 patch contains Comment form in user order page for the user along with permissions + comment form for admin with radio buttons and sending email functionality. It supports the latest version of Commerce module which is 2.38
please do have a look if you have some time.
Thanks !!