This repository has been archived by the owner on Apr 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
boris-brtan
commented
Jan 9, 2019
•
edited
Loading
edited
- administration of customer now contains discount field with range validation that is reflected into User entity
- prices of products are recalculated for logged customers based on custom discount
- discount works also for companies with multiple users
- CurrentCustomer is also extended for discount needs
Q | A |
---|---|
Description, reason for the PR | we want to test the extensibility of pricing from Shopsys Framework |
New feature | Yes |
BC breaks | No |
Fixes issues | - |
Standards and tests pass | Yes |
Have you read and signed our License Agreement for contributions? | Yes |
boris-brtan
force-pushed
the
bb-cusomer-discount
branch
from
January 9, 2019 06:47
6145ab8
to
fede225
Compare
boris-brtan
commented
Jan 9, 2019
boris-brtan
force-pushed
the
bb-cusomer-discount
branch
2 times, most recently
from
January 9, 2019 07:31
84c1af0
to
020a3fd
Compare
DavidOstrozlik
suggested changes
Jan 9, 2019
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 reviewed this PR and found just 2 cosmetic changes.
Tests: I found that:
- you can't save User if you didn't fill the discount - fixed
- on Firefox you can fill discount with letters and it doesn't show the correct invalid message - problem for mozilla i will create issue Fix mozilla JSvalidation for integer Constraints\Range shopsys#717
- on Firefox the JS validation of discount doesn't work - problem for mozilla i will create issue
Hi, i did the fixes and created issue for the JSFormValidator for mozilla browsers |
I see the same thing as in promocode so i put 0 as default value and put there not blank constraints |
boris-brtan
force-pushed
the
bb-cusomer-discount
branch
from
January 10, 2019 07:49
54546c3
to
ce7904a
Compare
now there is need to test also filtering by price |
DavidOstrozlik
suggested changes
Jan 10, 2019
src/Shopsys/ShopBundle/Model/Product/Pricing/ProductPriceCalculationForUser.php
Outdated
Show resolved
Hide resolved
src/Shopsys/ShopBundle/Model/Product/Pricing/ProductPriceCalculation.php
Show resolved
Hide resolved
src/Shopsys/ShopBundle/Model/Product/Pricing/ProductPriceCalculationForUser.php
Show resolved
Hide resolved
boris-brtan
force-pushed
the
bb-cusomer-discount
branch
2 times, most recently
from
January 10, 2019 18:13
7447f83
to
7d0e555
Compare
DavidOstrozlik
suggested changes
Jan 11, 2019
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 have just one suggestion and it would be great if you added information to "admin - order detail - add product" that the added product will not have any individual discounts
DavidOstrozlik
approved these changes
Jan 11, 2019
- administration of customer now contains discount field with range validation that is reflected into User entity - prices of products are recalculated for logged customers based on custom discount - discount works also for companies with multiple users - CurrentCustomer is also extended to discount needs
… not applying customer specific discounts for products in order
boris-brtan
force-pushed
the
bb-cusomer-discount
branch
from
January 14, 2019 12:18
e530b0f
to
0e51108
Compare
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.