forked from Sylius/Sylius
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 1.3: Improve release process docs Test order with no shipping address Ui improvements in addresses section Don't fail on billing or shipping address not set
- Loading branch information
Showing
8 changed files
with
117 additions
and
27 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
25 changes: 25 additions & 0 deletions
25
features/order/managing_orders/seeing_order_without_shipping_address.feature
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,25 @@ | ||
@managing_orders | ||
Feature: Seeing an order without shipping address | ||
In order to see details of a specific order which does not have to be shipped | ||
As an Administrator | ||
I want to be able to view basic information about an order | ||
|
||
Background: | ||
Given the store operates on a single channel in "United States" | ||
And the store has a product "Angel E-book" | ||
And this product does not require shipping | ||
And the store ships everywhere for free | ||
And the store allows paying with "Cash on Delivery" | ||
And there is a customer "lucy@teamlucifer.com" that placed an order "#00000666" | ||
And the customer bought a single "Angel E-book" | ||
And the customer set the billing address as "Mike Ross", "350 5th Ave", "10118", "New York", "United States" | ||
And the customer chose "Cash on Delivery" payment | ||
And I am logged in as an administrator | ||
|
||
@ui | ||
Scenario: Seeing basic information about an order | ||
When I view the summary of the order "#00000666" | ||
Then it should have been placed by the customer "lucy@teamlucifer.com" | ||
And it should be billed to "Mike Ross", "350 5th Ave", "10118", "New York", "United States" | ||
And it should be paid with "Cash on Delivery" | ||
And it should have no shipping address set |
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
34 changes: 19 additions & 15 deletions
34
src/Sylius/Bundle/AdminBundle/Resources/views/Order/Show/_addresses.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 |
---|---|---|
@@ -1,17 +1,21 @@ | ||
<h4 class="ui top attached styled header"> | ||
{{ 'sylius.ui.shipping_address'|trans }} | ||
</h4> | ||
<div class="ui attached segment" id="shipping-address"> | ||
{% include '@SyliusAdmin/Common/_address.html.twig' with {'address': order.shippingAddress} %} | ||
</div> | ||
<h4 class="ui attached styled header"> | ||
{{ 'sylius.ui.billing_address'|trans }} | ||
</h4> | ||
<div class="ui attached segment" id="billing-address"> | ||
{% include '@SyliusAdmin/Common/_address.html.twig' with {'address': order.billingAddress} %} | ||
<div class="ui segment"> | ||
<a href="{{ path('sylius_admin_order_update', {'id': order.id}) }}" class="ui icon labeled tiny fluid button"> | ||
<i class="pencil icon"></i> {{ 'sylius.ui.edit'|trans }} | ||
</a> | ||
{% if order.shippingAddress is not null %} | ||
<h4 class="ui top attached styled header"> | ||
{{ 'sylius.ui.shipping_address'|trans }} | ||
</h4> | ||
<div class="ui attached segment" id="shipping-address"> | ||
{% include '@SyliusAdmin/Common/_address.html.twig' with {'address': order.shippingAddress} %} | ||
</div> | ||
{% endif %} | ||
{% if order.billingAddress is not null %} | ||
<h4 class="ui attached styled header{% if order.shippingAddress is null %} top{% endif %}"> | ||
{{ 'sylius.ui.billing_address'|trans }} | ||
</h4> | ||
<div class="ui attached segment" id="billing-address"> | ||
{% include '@SyliusAdmin/Common/_address.html.twig' with {'address': order.billingAddress} %} | ||
</div> | ||
{% endif %} | ||
<div class="ui attached segment" id="edit-addresses"> | ||
<a href="{{ path('sylius_admin_order_update', {'id': order.id}) }}" class="ui icon labeled tiny fluid button"> | ||
<i class="pencil icon"></i> {{ 'sylius.ui.edit_addresses'|trans }} | ||
</a> | ||
</div> |
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