A few problems after 0.8 update

Daegaladh

Member
I've found these bugs on v0.8:

-$amount and $url don't show neither on payment_premium_ok_auto.html, payment_premium_ok_manual.html, join_premium_email_admin.html, join_premium_email_user.html, etc...
Edit: $url works on join_premium_review.html, dunno what it doesn't on the rest :S
Edit2: $amount doesn't work because it should use mc_gross instead of payment_gross, since mine it's on EUR, not USD. Please, change it next version.

-$firstname & $lastname don't show special characters correctly.
 

Basti

Administrator
Staff member
Thanks for the headsup, we will investigate that and give out an update.

As for the special characters, you might have some old plugin which still has ISO charset. If you view your page source, what does the charset say in your headarea?
 

Daegaladh

Member
Nope, the charset is utf-8. I think it's because those values are gotten from Paypal in user_premium.php and need to be converted into utf-8:

$TMPL['firstname'] = utf8_encode($keyarray['first_name']);
$TMPL['lastname'] = utf8_encode($keyarray['last_name']);

I'll test that tomorrow.

PD: I think item_name and custom should be encoded aswell because may contain special characters too.
 

Basti

Administrator
Staff member
Good input there, need to check paypal api again, might be able to send data as utf, not sure. Been quite some time.
 
Top