Email amount blank

7 replies [Last post]
rodpascoe
Offline
Joined: 01/26/2010
Status: 
Answered

 Hi,

When a user is signing up to my site I get the email (copied and pasted below) but the amount section is blank.

A new membership has been purchased!
     User: joecole
     Name: Joe Cole
     Membership Plan: Standard Membership Annual
     Amount: £
     Date: Mar 15, 2010
     Role: NPS Standard Member

rodpascoe
Offline
Joined: 01/26/2010
Also

Also, the signup email that the user gets shows <p> at the beginning and end and is not formatted properly.  See below.

This email also does not show the price.

 

<p>
       Dear Rod Pascoe, You have purchased the Standard Membership Annual membership for £ on Mar 15, 2010, and have been granted the NPS Standard Member role. Thank you! Sincerely, Site Admin</p>

 

Leighton Whiting
Offline
Joined: 06/02/2009
Rod, Are you adding the

Rod,
Are you adding the membership manually, or is this after someone purchase through PayPal?

Also, do you have the 'Use HTML in Emails' option turned on?

Sincerely,
Leighton Whiting

Terrence
Offline
Joined: 01/20/2010
This looks familiar, Leighton

I mentioned this issue in passing on another topic, but decided to just work around it. However, this looks to me like a currency issue like I'm having with CAD$.

The behavior I'm seeing is that the [amount] token always gets replaced with only a dollar sign and a blank space whenever the transaction is a recurring payment in CAD$. If the transaction is a one-time payment in CAD$, the [amount] token always gets replaced with the proper amount.

On the other hand, if the transaction is in US$,  the [amount] token always works and gets replaced with the proper amount. This is true with both recurring payment plans or one-time payment plans in US$.

I sniffed around a bit and wonder if there is some error in the IPN handling because it appears to me that there is a multi-purpose currency amount field and then there is a US dollar amount field that the IPNs throw around. Are you maybe snagging the US dollar field in your code, Leighton?

Cheers,
Terrence

Leighton Whiting
Offline
Joined: 06/02/2009
Terrence, That is very

Terrence,
That is very likely, thanks for the analysis on that. I will have to take a look at some logs to make sure. Terrence, can you email me some of the IPN logs?

Sincerely,
Leighton Whiting

rodpascoe
Offline
Joined: 01/26/2010
Hi

Sorry for the delay in replying to this thread, I'm away on location at the mo.

This is when someone purchases through PayPal using your script add-on.

Not sure about the HTML email, where would I check?

Thanks.

 

 

Terrence
Offline
Joined: 01/20/2010
IPN logs

Leighton, I don't know my way around well enough to do what you want without wasting my time. I'm not sure which ones you would want and there are a dozen log entries for each of the signups. I'm also not sure offhand how to send these to you except by laborious copy/paste. You should have no problem reproducing whatever IPNs you want to look at by setting up a sandbox test of a recurring CAD$ membership which will not fill in the dollar amount and comparing it to a single-payment CAD$ or either type of US$ payment type which do fill in the amounts.

However, I believe the problem is around mc_amount3 which doesn't seem to be addressed at all in your code. In line 1583 of ms_membership.module, the token gets filled by amount3 which to me appears to be US$ specific.

I trust that helps.
Terrence

 

 

Leighton Whiting
Offline
Joined: 06/02/2009
This one was hard to track

This one was hard to track down, but I was finally able to duplicate the error and get to the root of it. It is fixed now and will be released in Membership 5.9 tonight.

Sincerely,
Leighton Whiting

Twitter Feed