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

Add "cp.commerce.order.edit.details" hook in templates/orders/_edit at the end of block details #1597

Closed
GaryReckard opened this issue Jul 29, 2020 · 2 comments
Assignees
Labels
💡 enhancement Ideas and suggestions
Milestone

Comments

@GaryReckard
Copy link

GaryReckard commented Jul 29, 2020

What are you trying to do?
I'd like to add some custom functionality in the details pane on the right side of the Order edit page. The closest hook I've found is the "cp.commerce.order.edit.main-pane". Currently using some JS to move my code from there to the end of #details div, but it would be convenient to have a hook there.

What's your proposed solution?
At the end of this block:

{% block details %}
<div id="order-meta-app"></div>
{% endblock %}

Add
{% hook "cp.commerce.order.edit.details" %}

@GaryReckard GaryReckard added New 💡 enhancement Ideas and suggestions labels Jul 29, 2020
@lukeholder lukeholder added this to the 3.2 milestone Jul 29, 2020
@lukeholder lukeholder self-assigned this Jul 30, 2020
@lukeholder lukeholder removed the New label Jul 30, 2020
lukeholder added a commit that referenced this issue Jul 30, 2020
@lukeholder
Copy link
Member

Fixed in e21985a will be in the next release.

@GaryReckard
Copy link
Author

Thanks, Luke!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 enhancement Ideas and suggestions
Projects
None yet
Development

No branches or pull requests

2 participants