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

Prague man’s picture

Subs.

andyg5000’s picture

Project: Commerce PayPal » Commerce Core
Component: PayPal WPS » Checkout
Category: bug » feature
Status: Active » Postponed (maintainer needs more info)

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

rszrama’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Yeah, 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.