Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #2846890: Create a log entry when item is removed from cart or qty is changed programatically #625

Open
wants to merge 3 commits into
base: 8.x-2.x
Choose a base branch
from

Conversation

GoZOo
Copy link
Contributor

@GoZOo GoZOo commented Feb 1, 2017

cart_item_quantity_changed:
category: commerce_cart
label: 'Quantity changed from cart'
template: '<p>Quantity for <em>{{ purchased_entity_label }}</em> changed in the cart form <em>{{ original_quantity }} to {{ quantity }}</em>.</p>'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change "Quantity for" to "Quantity of".
No emphasis around the quantities.
And "form" should be "from".

@steveoliver
Copy link
Contributor

This looks good, @GoZOo - think you could create a test for this in https://github.com/drupalcommerce/commerce/blob/8.x-2.x/modules/log/tests/src/Kernel/CartIntegrationTest.php ? Then I'd say this is good to go.

@GoZOo
Copy link
Contributor Author

GoZOo commented Feb 1, 2017

You are right, I completely miss the tests

@GoZOo
Copy link
Contributor Author

GoZOo commented Feb 3, 2017

Note that we'll have to update this PR or #628 depending of witch one is commited first.

@steveoliver
Copy link
Contributor

Needs work. See last fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants