-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
#9862 Number of items in order summary page #9898
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
#9862 Number of items in order summary page #9898
Conversation
lchrusciel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for contribution Laurent!
Will you give a try to add a behat scenario for this as well?
|
@lchrusciel Sure I will give it a try |
src/Sylius/Bundle/ShopBundle/Resources/views/Order/_summary.html.twig
Outdated
Show resolved
Hide resolved
923412d to
c6b96a0
Compare
...kout/paying_for_order/changing_payment_method_after_order_confirmation_item_quantity.feature
Outdated
Show resolved
Hide resolved
...kout/paying_for_order/changing_payment_method_after_order_confirmation_item_quantity.feature
Outdated
Show resolved
Hide resolved
src/Sylius/Behat/Context/Ui/Shop/Checkout/CheckoutOrderDetailsContext.php
Outdated
Show resolved
Hide resolved
src/Sylius/Behat/Context/Ui/Shop/Checkout/CheckoutOrderDetailsContext.php
Outdated
Show resolved
Hide resolved
| </div> | ||
| <div class="item"> | ||
| {{ order.items|length }} {{ 'sylius.ui.items'|trans|lower }} | ||
| {{ order.totalQuantity }} {{ 'sylius.ui.items'|trans|lower }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering, maybe we should change the 'sylius.ui.items' translation as well? I agree that there we should have a total quantity of the order, but then it should be something like 4 units or 4 products or whatever, instead of 4 items as order item can be indeed 1 :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think items is the good word here.
It is the same word used in Amazon cart page even if you order several time the same product.
@Zales0123 let me know if it is ok for you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π
758c1df to
043819c
Compare
|
Thanks, Laurent! π |
Fixing number of items displayed in order summary page