Emailed invoice showing document.cookie text multiple times

edited November 2013 in Popup plugin
When pays for an order via PayPal the shop invoice that gets emailed to them is showing:

document.cookie = "wpcoauth=wpco528bd4bae02ae9.62036652; expires=Tue, 26 Nov 2013 21:14:34; path=/";
document.cookie = "wpcoauth=wpco528bd4bae069e6.08700895; expires=Tue, 26 Nov 2013 21:14:34; path=/";
document.cookie = "wpcoauth=wpco528bd4bae15103.82366921; expires=Tue, 26 Nov 2013 21:14:34; path=/";
document.cookie = "wpcoauth=wpco528bd4bae1f2e7.90213377; expires=Tue, 26 Nov 2013 21:14:34; path=/";

This is appearing before the product item price and total. It then also appears before sub total. This doesn't happen when they choose the offline payment method, only PayPal.

I can't seem to identify where the invoice template is writing this. If someone could at least tell me where it writes this info then I could possible write a hack that prevents this.

Also, this only happens in the automated email. If you use the send the email via Dashboard > Checkout > Orders and use the send invoice option then it doesn't have the cookie junk in it.

Where can I find where the automated invoice email gets sent from?

Comments

  • 1 Comment sorted by
  • Vote Up0Vote Down
    Hello Kat,

    Thank you for getting in contact with us.

    You can find the code responsible for generating the invoice under: wp-checkout/views/default/invoice.php

    Did you find a pattern on the invoices where the cookie information is displayed? That`s not a known issue so I suggest that you try to temporarily deactivate your third party plugins to make sure this isn`t being caused bt a plugin conflict.

    Let us know if it helps.

    All the best!


Sign In or Register to comment.