Postponed (maintainer needs more info)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Checkout
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Oct 2011 at 19:56 UTC
Updated:
3 Feb 2020 at 08:29 UTC
Jump to comment: Most recent
Comments
Comment #1
rszrama commentedYeah, that token doesn't list line items - in fact, I'm not sure where it's even being defined. I guess it must be coming from the Entity Token module. : ?
Can you state what you think the actual bug here is, though? Commerce hasn't done anything to add this, so perhaps your bug is just an unexpected integration from a third party module?
Comment #2
vasikethank you. if you're sure that it's not defined in the commerce maybe we can move it to entity or token.
the bug here is that [commerce-order:commerce_line_items] which is a view content, contains also the "edit link".
Comment #3
vasikethere is another issue if i am unauthenticated.
this token return "No line items found."
Actually the issue here is that i can't get the Product line items in the Customer Order Notification Email.
Comment #4
no2e commentedI have the same problem.
Thought that it would a problem with Commerce Email: #1477572: [commerce-order:commerce_line_items] prints View contextual link
The token
[commerce-order:commerce_line_items]contains Views markup (if used in Commerce Email template, it formats as a table with all the Views classes/divs).If you are privileged, you also get the Views contextual edit link in the mail content.
Don't know what to to … is this a bug? If so, with which module?
I need a token to list the ordered line items in the notification mail – and it should honor the 'manage display' settings of line item (or some other entity?). Commerce Email comes with
[commerce-email:order-items]– but I see no way to edit what should be displayed, because it seems that it doesn't use the 'manage display' settings of any Commerce entity. It always displays the price, but I don't want it to (don't use/publish prices in my shop).Comment #5
timodwhit commented#4 You could create a custom module that creates your own token for email. It isn't too much work and to remove the price it is simply removing some lines. I used the commerce email module as a base template and changed the names of items too match the module and added different areas from the line items that I needed.
And different cases for each custom line item
Comment #6
timodwhit commentedSo actually because that is a real pain in the buttocks. If it is possible for you, here is what I did:
"No line items" Appears for anonymous customers, but we know an account is created for anonymous users upon completing checkout.
So instead of sending the email on completion of order, I sent email on status update.
I have two statuses: Pending and Processing.
-When the order is completed the order status is moved to pending.
-Upon moving to pending the order is updated to processing.
-Then I have the order email fire when the status is updated to processing.
It adds an additional step, which adds some memory usage to the site, but at the same time, views is now usable for emails and thus, a lot easier to format as desired.
thoughts?
Comment #7
no2e commentedIf you don't like the workaround described in #6, you could try this:
http://drupal.org/node/1333174#comment-5834418
(But I'm not sure if this is secure. see #1524554: "View own orders of any type" for anonymous?)
@ #5: Thanks timodwhit. Phew, it sounds like a hard job for me (I'm no programmer). I'll try to copy the code and stuff it into an custom module.
Comment #8
timodwhit commentedHey Ryan,
Did you ever figure out if this is where this token is coming from? I can't find it for the life of me, which makes me nervous that with some update, it might be lost.
Best,
tim
Comment #9
timodwhit commentedNever mind, found that it was referencing the field/view from the order itself. Makes a lot more sense now.
Comment #10
Kenjicz commentedI think this token is generated from billy invoice module
Comment #11
liangdrop commentedI'm having the same problem. Is there a way to display ONLY the "line items" name information in the notification Email at checkout: i.e: "You purchased: Red T-shirt".
Currently using the existing token: [commerce-order:commerce_line_items] will spell out the whole View table: "Order" with skewed table format and all the unit prices. I simply want the Line item name (Not the unit, unit price, etc). And, not in a table format, which looks really bad in the text Email.
Comment #12
jsimonis commentedI see this is still a problem - I get the same thing when we use that token in an email. There needs to be a way to create a rule for an email to be sent out that can be formatted as a receipt. The current rule only sends to the customer, not a notification to whoever it is in your organization that handles orders. So you have to create an email of your own. Problem with that is you get this "Edit view" link inside the email that gets sent.
If [commerce-order:commerce_line_items] isn't the right token to use, then what is? I can't believe it's this difficult to do something that should be a basic in an ecommerce system - create a receipt with order details.