bug #13878 [Template] Variant name instead of product name (ernestWarwas)

This PR was merged into the 1.10 branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | 1.10
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| License         | MIT

Show variant name instead of the product name.

<!--
 - Bug fixes must be submitted against the 1.10 or 1.11 branch(the lowest possible)
 - Features and deprecations must be submitted against the master branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->


Commits
-------

47ffea55e8 [Template] variant name instead of product name
4b73ae1eea [Behat] variant name instead of product name
This commit is contained in:
Łukasz Chruściel 2022-04-14 21:10:48 +02:00 committed by GitHub
commit 07e1d4ef81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -41,8 +41,8 @@ Feature: Viewing details of a product with variants
Scenario: Viewing variants block
When I access "Iron Shield" product page
Then I should see 2 variants
And I should see "Iron shield" variant with code "123456789-xl", priced "$25.00" and current stock 5
And I should see "Iron shield" variant with code "123456789-xs", priced "$15.00" and current stock 12
And I should see "Iron shield - very big" variant with code "123456789-xl", priced "$25.00" and current stock 5
And I should see "Iron shield - very small" variant with code "123456789-xs", priced "$15.00" and current stock 12
@ui @javascript
Scenario: Viewing media block

View file

@ -9,7 +9,7 @@
{% endif %}
</div>
<div class="middle aligned content">
<div><strong class="variant-name">{{ variant.product.name }}</strong></div>
<div><strong class="variant-name">{{ variant.name }}</strong></div>
<small class="gray text variant-code">{{ variant.code }}</small>
</div>
</div>