Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When I use the token [commerce-order:commerce_line_items]
in the mail, it adds the contextual link (to edit the View) in the mail (before the line items table):
<p><div class="view view-commerce-line-item-table view-id-commerce_line_item_table view-display-id-default view-dom-id-123… contextual-links-region">
<div class="contextual-links-wrapper"><ul class="contextual-links"><li class="views-ui-edit first last"><a href="/de/admin/structure/views/view/commerce_line_item_table/edit/default?destination=checkout/26/review">Ansicht bearbeiten</a></li>
</ul></div>
<div class="view-content">
<table class="views-table cols-2" >
[…]
</table>
</div>
</div></p>
Comment | File | Size | Author |
---|---|---|---|
#5 | 1477572-5.png | 65.12 KB | hgoto |
Comments
Comment #1
no2e CreditAttribution: no2e commentedIt seems to happen only for user 1.
When I order something as admin, the email contains the link.
When I order something as normal user, the email doesn't contain the link.
Comment #2
no2e CreditAttribution: no2e commentedSame problem at Commerce queue:
#1300678: [commerce-order:commerce_line_items] token issues for Checkout Rules
Comment #3
paul.linney CreditAttribution: paul.linney commentedComment #4
hgoto CreditAttribution: hgoto as a volunteer commentedThis is an old issue but I'd like to share my understanding on this for future visitors.
[commerce-order:commerce_line_items]
is defined not by this module but by Commerce Order module.So I'm not sure that this is an issue for this module.
For people visiting this page down the road, I'd like to share one quick solution for this. Please open the views view configuration page and change "Hide contextual links" parameter to "Yes" and save the view. You are no longer annoyed by the contextual links.
http://YOUR_SITE/admin/structure/views/view/commerce_line_item_table/edit/default
FYI, The issue #2255027: "Edit view" link is included in order receipt, above Line Items resolved the same problem in a different module.
Comment #5
hgoto CreditAttribution: hgoto as a volunteer commentedHere is a capture for comment #4.