-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor #15417 [DX][Checkout][ShippingMethod] Dispatch new ui events…
… (Jibbarth, GSadee) This PR was merged into the 1.13 branch. Discussion ---------- | Q | A | |-----------------|--------------------------------------------------------------| | Branch? | 1.13 <!-- see the comment below --> | | Bug fix? | no | | New feature? | yes | | BC breaks? | no | | Deprecations? | no <!-- don't forget to update the UPGRADE-*.md file --> | | Related tickets | N/A | | License | MIT | Following #15384, this add a `sylius.shop.checkout.select_shipping.choice_item_content` and a `sylius.shop.checkout.select_shipping.choice_item_extra` ui events. Description and fee are now extracted and injected through this new events Commits ------- d9e799e [DX][Checkout][ShippingMethod] Dispatch new ui events 0ad2c0f Merge branch '1.13' into feature/ui-event-for-select-shipping
- Loading branch information
Showing
4 changed files
with
24 additions
and
12 deletions.
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
5 changes: 5 additions & 0 deletions
5
src/Sylius/Bundle/ShopBundle/Resources/views/Checkout/SelectShipping/_description.html.twig
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% if method.description is not null %} | ||
<div class="description"> | ||
<p>{{ method.description }}</p> | ||
</div> | ||
{% endif %} |
5 changes: 5 additions & 0 deletions
5
src/Sylius/Bundle/ShopBundle/Resources/views/Checkout/SelectShipping/_fee.html.twig
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% import '@SyliusShop/Common/Macro/money.html.twig' as money %} | ||
|
||
<div class="ui large right floated fee label" {{ sylius_test_html_attribute('shipping-method-fee') }}> | ||
{{ money.convertAndFormat(fee) }} | ||
</div> |