When the customer pays via PayPal WPS, the order is placed in the system correctly and the customer is able to receive the confirmation email. However:
[site:current-user] returns the "Anonymous Value" in /admin/config/people/accounts
[commerce-order:commerce_line_items] returns "No line items found."
Oddly enough, [commerce-order:commerce-line-items] does return the line item ID's. (please notice its dashes, not underscores). Also, [commerce-order:commerce_customer_billing] and [commerce-order:commerce_customer_shipping] pull the complete address information. [commerce-order:commerce_order_total] pulls the order subtotal, shipping, tax, totals.
Its just [site:current-user] and [commerce-order:commerce_line_items] that don't work. The weight of "Send an order notification e-mail" is last. Is there something wrong with the view: /admin/structure/views/view/commerce_line_item_table/edit/default ?? But then again, [site:current-user] also seems to have in issue.
Comments
Comment #1
Prague man commentedSubs.
Comment #2
andyg5000I believe that [commerce-order:owner] is the correct token that you're looking for order owner. Also, the [commerce-order:commerce-line-items] is the correct token. Also, I'm moving this to Drupal Commerce because it doesn't sound to be Commerce Paypal WPS specific.
Comment #3
rszrama commentedYeah, note that this process is being triggered by the IPN, which comes from PayPal to the site as an anonymous user to complete the order. So, [site:current-user] is the PayPal server, a.k.a. an anonymous user. Also, the line items tokens are just insufficient by default. They're coming in through other modules that we don't have any control over, but basically I wouldn't use them. There are other issues in the queue about trying to pretty them up, but there are also other modules out there that are working to provide prettier e-mails in general.