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>
CommentFileSizeAuthor
#5 1477572-5.png65.12 KBhgoto
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

no2e’s picture

It 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.

no2e’s picture

paul.linney’s picture

Status: Active » Postponed (maintainer needs more info)
hgoto’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (works as designed)

This is an old issue but I'd like to share my understanding on this for future visitors.

  • The token [commerce-order:commerce_line_items] is defined not by this module but by Commerce Order module.
  • And whether emails should contain the contextual link or not is not configured by this 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.

hgoto’s picture

FileSize
65.12 KB

Here is a capture for comment #4.