Closed (fixed)
Project:
Commerce Point of Sale (POS)
Version:
8.x-2.x-dev
Component:
User interface
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
7 Mar 2018 at 21:13 UTC
Updated:
27 Apr 2018 at 18:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
geek-merlinYes. Daring to raise prio as this is so counter-intuitive.
Comment #3
jnrfred commentedThis is a patch to display order comments.
Comment #4
smccabe commentedThis is the default look for order activity
And the above screenshot from Fred is a simple basic custom one. I'd like to use the default commerce look, but push an improvement to commerce core as well.
@jjpoole can you take a look at it?
Comment #5
jjpoole commented@smccabe
Are these 2 different things? comments vs order activity?
ps. visually they both look OK
Comment #6
jnrfred commentedThe attached screenshot is using the default commerce order activity for the order comments as another way to display order comment as suggested by @smccabe. One issue is that, when a comment is added, you will need to reload the page to see recent comment. Will have to figure a way to show comment after it's added without reloading entire page manually.
Comment #7
jjpoole commentedAh, ok makes sense. Couple notes:
Need to sync the vocabulary. ie. are we calling it a "note" or "comment" or "message" ? then make sure buttons and column headers match.
Might make sense to have the "Message" column first, as it is probably the most important content.
Comment #8
smccabe commented@jnrfred if you just have it reload via ajax when the comment is added it should work fine.
Agree with jason about flipping columns, but that should be a commerce patch.
Comment #9
smccabe commentedWell this issue is just the devil itself, I ended up down the rabbit hole of some PHP memory allocation issue related to late static bindings, which was not fun.
Anyways, I've got a work around in for that and this patch is closer to done, I've cleaned up the ajax and simplified the interface as per Anders Paulsen's suggestions. There is no longer any specific save buttons or ajax, notes just save on any regular form submits, making it cleaner.
Still outstanding
Comment #10
jnrfred commented@smccabe your patch fails to apply.
commerce_pos-display_order_comments-2950975-9.patch:17: trailing whitespace.
Checking patch src/Form/POSForm.php...
error: while searching for:
use Drupal\Core\Url;
use Drupal\commerce_price\Entity\Currency;
use Drupal\user\PrivateTempStoreFactory;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
error: patch failed: src/Form/POSForm.php:14
error: src/Form/POSForm.php: patch does not apply
Also, need to remove
dpm($comment)from codeComment #11
jnrfred commentedGot the parking order to save order comments and did some code clean up as well for today.
Comment #12
smccabe commentedComment #15
smccabe commentedUpdated and added tests.
Comment #18
smccabe commented