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

Order refactoring #244

Closed

Conversation

YaroslavShapoval
Copy link

Just first of the commits for the issue #203

Do not make pull-request yet, just make code-review please. I will push another changes.

Fixed bug in admin order page - total price of the order was calculated without taking into account the number of products.

@YaroslavShapoval YaroslavShapoval mentioned this pull request Aug 18, 2015
19 tasks
@YaroslavShapoval
Copy link
Author

I found the bug about total price.

The error is in the file application/modules/shop/controllers/BackendOrderController, in the method actionChangeOrderItemQuantity().

The problem is in the calling method save() for the $orderItem. Order item total price (with total price without discount and discount amount) calculated in beforeValidate action in OrderItem model.

But this values don't save if trying to do that from the method actionChangeOrderItemQuantity. Because when save() calling we passing only one field name - quantity. So, only quantity changes saved.

@fps01 fps01 closed this in 868e286 Aug 19, 2015
@fps01
Copy link
Contributor

fps01 commented Aug 19, 2015

@YaroslavShapoval thanks for bug report!

@YaroslavShapoval
Copy link
Author

@fps01 you are welcome!

But why you didn't pull my changes on i18n?

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.

3 participants