Skip to content
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

[Admin][Order] Add resending an order confirmation email #10932

Merged
merged 2 commits into from
Dec 16, 2019

Conversation

GSadee
Copy link
Member

@GSadee GSadee commented Dec 12, 2019

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Related tickets fixes #10907
License MIT

Based on #10936

screencapture-127-0-0-1-8007-admin-orders-23-2019-12-12-14_40_39

@GSadee GSadee added Feature New feature proposals. Admin AdminBundle related issues and PRs. labels Dec 12, 2019
@GSadee GSadee requested a review from a team as a code owner December 12, 2019 13:49
@@ -47,6 +47,7 @@

{% include '@SyliusAdmin/Order/Show/_payments.html.twig' %}
{% include '@SyliusAdmin/Order/Show/_shipments.html.twig' %}
{% include '@SyliusAdmin/Order/Show/_resendEmail.html.twig' %}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is just a personal filling, but I would say, that it would be better to add this button next to cancel buttons etc at the top of the page

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is quite a big button and I've consulted that with @CoderMaggie that this will be a proper place

@GSadee GSadee force-pushed the resending-order-confirmation branch from 7d9cfa4 to 459bc1a Compare December 12, 2019 14:24
@GSadee GSadee force-pushed the resending-order-confirmation branch 4 times, most recently from 1db2c65 to 85a0b36 Compare December 13, 2019 10:40
@pjedrzejewski
Copy link
Member

Reaction: I think typically it is more visible in the top (above the customer or maybe the top menu? Here it will be really hidden.

@CoderMaggie
Copy link
Member

CoderMaggie commented Dec 13, 2019

@pjedrzejewski I know, but it's not a common action, but an edge-case. It will not be performed all the time, that's why I've requested placing it on the bottom :)

@GSadee GSadee force-pushed the resending-order-confirmation branch from 85a0b36 to d7baba1 Compare December 16, 2019 07:02
'sylius.email.order_confirmation_resent'
);

return new RedirectResponse($request->headers->get('referer'));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the long term, we should think about providing a way to handle these actions in Admin API as well, because right now Admin API and normal Admin panel will drift from each other with the feature list

{% endblock %}

{% block content %}
{% set url = channel.hostname is not null ? 'http://' ~ channel.hostname ~ path('sylius_shop_order_show', {'tokenValue': order.tokenValue, '_locale': localeCode}) : url('sylius_shop_order_show', {'tokenValue': order.tokenValue, '_locale': localeCode}) %}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to resolve this coupling ASAP

@lchrusciel lchrusciel merged commit 8f56c30 into Sylius:master Dec 16, 2019
@lchrusciel
Copy link
Member

Thank you, Grzegorz! 🥇

@GSadee GSadee deleted the resending-order-confirmation branch December 16, 2019 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Admin AdminBundle related issues and PRs. Feature New feature proposals.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Resend order confirmation email from backend
4 participants