-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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][OrderItem] Immutable product/variant names #8874
Merged
Merged
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
f21c034
#8628 Added immutable product/variant names and codes on OrderItem
johnrisby 7f35652
[OrderItem] Refactor adding immutable product/variant names and codes
GSadee 3da58c3
[Behat][Order] Add scenarios for viewing items with proper names
GSadee 3b0fb95
[Order] Add displaying immutable product/variant names and codes in ui
GSadee 1bafcbe
Fix unit tests by changing fixtures order
GSadee 1f9f443
[Order] Remove immutable product/variant code
GSadee 003096c
[Order] Remove immutable prefix
GSadee cdc9221
Fixes after PR review
GSadee bb52a56
[Order] Add order product/variant names setter
GSadee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[Order] Add displaying immutable product/variant names and codes in ui
- Loading branch information
commit 3b0fb9542d759901d8422c12808b19b2040a5fa5
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
{% set product = variant.product %} | ||
|
||
<div class="ui header"> | ||
{% include '@SyliusAdmin/Product/_mainImage.html.twig' with {'product': product, 'filter': 'sylius_admin_product_tiny_thumbnail'} %} | ||
<div class="content"> | ||
<a href="{{ path('sylius_admin_product_update', {'id': product.id}) }}" class="sylius-product-name" title="{{ product.name }}">{{ product.name }}</a> | ||
<span class="sub header sylius-product-variant-code" title="{{ variant.code }}"> | ||
{{ variant.code }} | ||
<div class="sylius-product-name" title="{{ item.immutableProductName }}">{{ item.immutableProductName }}</div> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need to add Just thinking |
||
<span class="sub header sylius-product-variant-code" title="{{ item.immutableVariantCode }}"> | ||
{{ item.immutableVariantCode }} | ||
</span> | ||
</div> | ||
</div> | ||
|
@@ -17,10 +15,10 @@ | |
</div> | ||
{% endfor %} | ||
</div> | ||
{% elseif variant.name is not null %} | ||
{% elseif item.immutableVariantName is not null %} | ||
<div class="ui horizontal divided list"> | ||
<div class="item sylius-product-variant-name"> | ||
{{ variant.name }} | ||
{{ item.immutableVariantName }} | ||
</div> | ||
</div> | ||
{% endif %} |
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
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.
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.
What's the difference?